From 4f92fc402753262a5ec27387b48a997985b3527c Mon Sep 17 00:00:00 2001 From: John Levon Date: Fri, 28 Mar 2003 03:54:39 +0000 Subject: [PATCH] bug 656 - 1.3. patch attached to bug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6605 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insetgraphicsParams.C | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index d570b3f4ae..0d7e9d974f 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2003-03-28 John Levon + + * insetgraphicsParams.C: read subcaptionText as a whole line + (bug 656) + 2003-03-28 John Levon * insettext.C: remove unused prototypes diff --git a/src/insets/insetgraphicsParams.C b/src/insets/insetgraphicsParams.C index af7cba0a1e..7ce4710974 100644 --- a/src/insets/insetgraphicsParams.C +++ b/src/insets/insetgraphicsParams.C @@ -222,8 +222,10 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const & token) } else if (token == "subcaption") { subcaption = true; } else if (token == "subcaptionText") { - lex.next(); - subcaptionText = lex.getString(); + lex.eatLine(); + string sub = lex.getString(); + // strip surrounding " " + subcaptionText = sub.substr(1, sub.length() - 2); } else if (token == "special") { lex.eatLine(); special = lex.getString(); -- 2.39.5