]> git.lyx.org Git - features.git/commitdiff
Fixes from Dekel and John
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 29 Sep 2000 12:14:15 +0000 (12:14 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 29 Sep 2000 12:14:15 +0000 (12:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1057 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
config/kde.m4
src/combox.h
src/intl.C

index 09cc72729e2cae84f46da9d766e1b443b0893b32..f3430be70e79568f1e18626336413468019b29f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+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
index cbb8627d7eaa37a1759befe7a020dc6a09a23198..f79a9fed8d97754e8f2bdfa07fbe1d25b9e26158 100644 (file)
@@ -629,6 +629,24 @@ if test ! "$kde_qt_libs_given" = "yes"; then
 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)
 
index 16c6cd056ad2ab6c6ba50033c0eae2965e34821f..96a01be42a6a905fc368f1e21fb71829b1c205cc 100644 (file)
@@ -221,7 +221,7 @@ string const Combox::getline()
     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
index 28bcae1716054c9dda55d0ad6ef86e0dbb8ad0a8..0f33480ee6a6db0af4ee3610db7a0c6b5181e405 100644 (file)
@@ -273,11 +273,12 @@ void Intl::InitKeyMapper(bool on)
        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) {