From e624a4176e25f5fd3a1e3af94bc5e01e39bc0baf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 8 Apr 2008 15:59:23 +0000 Subject: [PATCH] * GuiToolbar.cpp (sorted_ong_map): - sort (and prevent assertion). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24177 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiToolbar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index f7f5e4a1b9..1c7c644cc7 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -108,6 +108,8 @@ private: }; +// this must be sorted alphabetically +// Upper case comes before lower case PngMap sorted_png_map[] = { { "Bumpeq", "bumpeq2" }, { "Cap", "cap2" }, @@ -134,6 +136,7 @@ PngMap sorted_png_map[] = { { "Updownarrow", "updownarrow2" }, { "Upsilon", "upsilon2" }, { "Vdash", "vdash3" }, + { "Vert", "vert2" }, { "Xi", "xi2" }, { "nLeftarrow", "nleftarrow2" }, { "nLeftrightarrow", "nleftrightarrow2" }, @@ -142,8 +145,7 @@ PngMap sorted_png_map[] = { { "nvDash", "nvdash2" }, { "textrm \\AA", "textrm_AA"}, { "textrm \\O", "textrm_O"}, - { "vDash", "vdash2" }, - { "Vert", "vert2" } + { "vDash", "vdash2" } }; size_t const nr_sorted_png_map = sizeof(sorted_png_map) / sizeof(PngMap); -- 2.39.2