mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
restrict scope of temporary variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7377 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9ea1c79aa0
commit
330fdeda26
@ -1,3 +1,7 @@
|
||||
2003-07-26 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* text.C (setHeightOfRow): restrict scope of temporary variable
|
||||
|
||||
2003-07-27 Asger Alstrup <alstrup@local>
|
||||
|
||||
* text.C (fill): Optimise algorithm to exploit that we can reuse
|
||||
|
@ -1055,8 +1055,6 @@ void LyXText::setHeightOfRow(RowList::iterator rit)
|
||||
float layoutasc = 0;
|
||||
float layoutdesc = 0;
|
||||
float tmptop = 0;
|
||||
LyXFont tmpfont;
|
||||
InsetOld * tmpinset = 0;
|
||||
|
||||
// ok, let us initialize the maxasc and maxdesc value.
|
||||
// This depends in LaTeX of the font of the last character
|
||||
@ -1103,8 +1101,8 @@ void LyXText::setHeightOfRow(RowList::iterator rit)
|
||||
// Check if any insets are larger
|
||||
for (pos_type pos = rit->pos(); pos <= pos_end; ++pos) {
|
||||
if (pit->isInset(pos)) {
|
||||
tmpfont = getFont(bv()->buffer(), pit, pos);
|
||||
tmpinset = pit->getInset(pos);
|
||||
LyXFont const & tmpfont = getFont(bv()->buffer(), pit, pos);
|
||||
InsetOld * tmpinset = pit->getInset(pos);
|
||||
if (tmpinset) {
|
||||
#if 1 // this is needed for deep update on initialitation
|
||||
#warning inset->update FIXME
|
||||
|
Loading…
Reference in New Issue
Block a user