mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
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:
parent
0458e5028b
commit
56359ec0a8
@ -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>
|
2003-05-19 André Pönitz <poenitz@gmx.net>
|
||||||
|
|
||||||
* inset.[Ch]:
|
* inset.[Ch]:
|
||||||
|
@ -52,7 +52,7 @@ void InsetSpecialChar::dimension(BufferView *, LyXFont const & font,
|
|||||||
case MENU_SEPARATOR: s = " x "; break;
|
case MENU_SEPARATOR: s = " x "; break;
|
||||||
case PROTECTED_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)
|
if (kind_ == HYPHENATION && dim.w > 5)
|
||||||
dim.w -= 2; // to make it look shorter
|
dim.w -= 2; // to make it look shorter
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user