summaryrefslogtreecommitdiff
path: root/iup/src
diff options
context:
space:
mode:
Diffstat (limited to 'iup/src')
-rwxr-xr-xiup/src/iup_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iup/src/iup_text.c b/iup/src/iup_text.c
index cd8f400..06c6915 100755
--- a/iup/src/iup_text.c
+++ b/iup/src/iup_text.c
@@ -84,7 +84,7 @@ void iupTextUpdateFormatTags(Ihandle* ih)
for (i = 0; i < count; i++)
{
char* bulk = iupAttribGet(tag_array[i], "BULK");
- if (format && iupStrBoolean(format))
+ if (bulk && iupStrBoolean(bulk))
{
Ihandle* child = NULL;
void* state = iupdrvTextAddFormatTagStartBulk(ih);
@@ -112,7 +112,7 @@ int iupTextSetAddFormatTagHandleAttrib(Ihandle* ih, const char* value)
iTextUpdateValueAttrib(ih);
char* bulk = iupAttribGet(formattag, "BULK");
- if (format && iupStrBoolean(format))
+ if (bulk && iupStrBoolean(bulk))
{
Ihandle* child = NULL;
void* state = iupdrvTextAddFormatTagStartBulk(ih);