From 776e608bad5a9418584d54feaffac7e5c2e780fd Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 2 Apr 2009 20:19:46 +0000 Subject: [PATCH] branch: Fix bug 4673: Case-insensitive sorting of colors in GuiPrefs?. see: http://www.lyx.org/trac/changeset/27995 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29029 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiPrefs.cpp | 3 ++- status.16x | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index d454202f25..da7992968f 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -802,7 +802,8 @@ namespace { struct ColorSorter { bool operator()(ColorCode lhs, ColorCode rhs) const { - return lcolor.getGUIName(lhs) < lcolor.getGUIName(rhs); + return + compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0; } }; diff --git a/status.16x b/status.16x index b3cf77121d..47f7b61a1c 100644 --- a/status.16x +++ b/status.16x @@ -189,6 +189,9 @@ What's new control user interface. - Remove black box around the document which is visible with Qt4.5. + +- Do not sort the colors in the preferences dialog case-sensitively + (bug 4673). * DOCUMENTATION AND LOCALIZATION