fix crash by using string

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7009 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-05-22 20:19:14 +00:00
parent ccce6b9662
commit cfead52093
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-05-22 Lars Gullik Bjønnes <larsbj@gullik.net>
* insetspecialchar.C (dimension): use a string.
2003-05-22 Angus Leeming <leeming@lyx.org>
* inset*.[Ch] (latex):

View File

@ -44,7 +44,7 @@ void InsetSpecialChar::dimension(BufferView *, LyXFont const & font,
dim.a = font_metrics::maxAscent(font);
dim.d = font_metrics::maxDescent(font);
char const * s = 0;
string s;
switch (kind_) {
case LIGATURE_BREAK: s = "|"; break;
case END_OF_SENTENCE: s = "."; break;