Ignore:
Timestamp:
Apr 3, 2010, 9:13:10 PM (11 years ago)
Author:
dmik
Message:

branches/kmk: Oops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kmk/Lucide/gui/docViewer.cpp

    r353 r354  
    14591459            str[ len ] = 0;
    14601460            char *contents = uniSysToUtf8( str, NULL, NULL );
    1461             if ( strcmp( textField->getContents( ev ), contents ) ) {
     1461            char *oldContents = textField->getContents( ev );
     1462            if ( (oldContents == NULL && contents != NULL) ||
     1463                 (oldContents != NULL && contents == NULL) ||
     1464                 strcmp( textField->getContents( ev ), contents ) ) {
    14621465                // only modify the field if it differs
    14631466                textField->setContents( ev, contents );
Note: See TracChangeset for help on using the changeset viewer.