fix buglet introduced yesterday

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6985 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-05-20 13:39:28 +00:00
parent 0458e5028b
commit 56359ec0a8
2 changed files with 5 additions and 1 deletions

View 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]:

View 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
}