]> code.delx.au - gnu-emacs/commitdiff
Fixed over-eager ifdef
authorjave <joakim@verona.se>
Sun, 4 Jan 2015 11:28:42 +0000 (12:28 +0100)
committerjave <joakim@verona.se>
Sun, 4 Jan 2015 11:28:42 +0000 (12:28 +0100)
An xwidget ifdef in xdisp.c ended too late, so non xwidget code got
ifdefed away unexpectedly. Should fix a crash.

src/xdisp.c

index dd474cf094e52e520ee7c1fe9778af275fc1474a..bd6ab628d438d0768d8fd43529db92266303b04d 100644 (file)
@@ -7690,6 +7690,7 @@ set_iterator_to_next (struct it *it, int reseat_p)
     case GET_FROM_STRETCH:
 #ifdef HAVE_XWIDGETS
     case GET_FROM_XWIDGET:
+#endif
 
       /* The position etc with which we have to proceed are on
         the stack.  The position may be at the end of a string,
@@ -7699,7 +7700,6 @@ set_iterator_to_next (struct it *it, int reseat_p)
       if (it->method == GET_FROM_STRING)
        goto consider_string_end;
       break;
-#endif
 
     default:
       /* There are no other methods defined, so this should be a bug.  */