From fdc357ba2bb24e6fcaa366dba8508f105e7e7851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Tue, 25 Jul 2000 16:15:35 +0000 Subject: [PATCH] fix insetinclude git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@921 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetinclude.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index 539bdda2dc..5d71ca7f45 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -195,14 +195,17 @@ static string unique_id() { #ifdef HAVE_SSTREAM std::ostringstream ost; ost << "file" << ++seed; + + // Needed if we use lyxstring. + return ost.str().c_str(); #else char ctmp[16]; ostrstream ost(ctmp,16); ost << "file" << ++seed << '\0'; -#endif // Needed if we use lyxstring. - return ost.str().c_str(); + return ost.str(); +#endif }