+2000-09-27 John Levon <moz@compsoc.man.ac.uk>
+
+ * config/kde.m4: make Qt fail immediately if Qt2 is picked up
+
+2000-09-28 Dekel Tsur <dekelts@tau.ac.il>
+
+ * src/intl.C (InitKeyMapper): Correct the value of n due to the
+ removal of the "default" language.
+
+ * src/combox.h (getline): Check that sel > 0
+
2000-09-29 José Abílio Matos <jamatos@fep.up.pt>
* lib/examples/docbook_example.lyx
KDE_CHECK_QT_DIRECT(qt_libraries= ,[])
fi
+dnl should check it's not Qt2, so it will fail now, rather than in KDE check
+
+SAVE_CXXFLAGS="$CXXFLAGS"
+CXXFLAGS="$CXXFLAGS -I$qt_includes -L$qt_libraries"
+AC_TRY_COMPILE([
+#include <qglobal.h>
+],
+[
+#if (QT_VERSION >= 200)
+break_me_(\\\);
+#endif
+],
+ac_qt_ok=yes,
+ac_qt_ok=no
+)
+test "$ac_qt_ok" = no && AC_MSG_ERROR([Found Qt 2 - you must specify the path to the Qt 1 headers and libraries])
+CXXFLAGS="$SAVE_CXXFLAGS"
+
AC_SUBST(qt_libraries)
AC_SUBST(qt_includes)
if (type == FL_COMBOX_INPUT)
return fl_get_input(label);
else
- return browser ? fl_get_browser_line(browser, sel) : 0;
+ return (browser && sel > 0) ? fl_get_browser_line(browser, sel) : string();
}
#endif
Language2->add(120, 110, 160, 30, 300); // Secondary
fl_end_form();
- int n = 1;
+ int n = 0;
// Default is not in the language map
#ifdef DO_USE_DEFAULT_LANGUAGE
Language->addto("default");
Language2->addto("default");
+ ++n;
#endif
for (Languages::const_iterator cit = languages.begin();
cit != languages.end(); ++cit) {