From cfead520932505dfe0582a034e1b4dbf0dc925e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 22 May 2003 20:19:14 +0000 Subject: [PATCH] fix crash by using string git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7009 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/insetspecialchar.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 43dc2e3979..9cc1b43f53 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-05-22 Lars Gullik Bjønnes + + * insetspecialchar.C (dimension): use a string. + 2003-05-22 Angus Leeming * inset*.[Ch] (latex): diff --git a/src/insets/insetspecialchar.C b/src/insets/insetspecialchar.C index 72b0877e55..e5f2536ca8 100644 --- a/src/insets/insetspecialchar.C +++ b/src/insets/insetspecialchar.C @@ -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;