]> git.lyx.org Git - features.git/commitdiff
fix buglet introduced yesterday
authorAndré Pönitz <poenitz@gmx.net>
Tue, 20 May 2003 13:39:28 +0000 (13:39 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 20 May 2003 13:39:28 +0000 (13:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6985 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetspecialchar.C

index 93aeab8aa11ff93a5e40a5d5988ae878a6be65a9..955b15835b1637f66c9b62f812d347fcbfc02739 100644 (file)
@@ -1,4 +1,8 @@
 
+2003-05-19  André Pönitz  <poenitz@gmx.net>
+
+       * insetspecialchar.C: fix bug introduced yesterday
+
 2003-05-19  André Pönitz  <poenitz@gmx.net>
 
        * inset.[Ch]:
index 54a6a2e354956216f42fd2ce01d04599fcda2bf4..8b2dcd46e45e0cd4775942fe9c2a808e96ba815c 100644 (file)
@@ -52,7 +52,7 @@ void InsetSpecialChar::dimension(BufferView *, LyXFont const & font,
                case MENU_SEPARATOR:      s = " x ";   break;
                case PROTECTED_SEPARATOR: s = "x";     break;
        }
-       dim.w = font_metrics::width('x', font);
+       dim.w = font_metrics::width(s, font);
        if (kind_ == HYPHENATION && dim.w > 5)
                dim.w -= 2; // to make it look shorter
 }