make g++ happy about variable declaration

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3099 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Allan Rae 2001-11-28 06:56:59 +00:00
parent c780503b4c
commit 52ecdce716
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-11-28 Allan Rae <rae@lyx.org>
* text.C (paintLastRow): g++-2.95.3 and others don't like variable
declaration & definition that looks like a function declaration.
2001-11-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* BufferView2.C (copy):

View File

@ -3402,9 +3402,10 @@ void LyXText::paintLastRow(DrawRowParams & p)
y_bottom -= 3 * defaultHeight();
} else if (parparams.spaceBottom().kind() == VSpace::LENGTH) {
string str(string(_("Space below")) + " ("
string str = string(_("Space below"))
+ " ("
+ parparams.spaceBottom().asLyXCommand()
+ ")");
+ ")";
int const space = int(parparams.spaceBottom().inPixels(p.bv));
int const y = p.yo + y_bottom - space / 2;