From: John Levon Date: Fri, 28 Mar 2003 03:54:39 +0000 (+0000) Subject: bug 656 - 1.3. patch attached to bug X-Git-Tag: 1.6.10~17148 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4f92fc402753262a5ec27387b48a997985b3527c;p=lyx.git 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 --- 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();