mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Small fix and remove some warinings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2125 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0ba8b80b15
commit
3eaf3246be
@ -945,8 +945,7 @@ void BufferView::Pimpl::workAreaExpose()
|
||||
void BufferView::Pimpl::update()
|
||||
{
|
||||
if (screen_.get() &&
|
||||
(!bv_->text->theLockingInset() ||
|
||||
!bv_->text->theLockingInset()->nodraw()))
|
||||
(!bv_->theLockingInset() || !bv_->theLockingInset()->nodraw()))
|
||||
{
|
||||
screen_->Update(bv_->text, bv_);
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
2001-06-14 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* insettext.C (draw): removed warinings.
|
||||
|
||||
2001-06-13 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* insettabular.C (nodraw): only go down the tree if we don't have
|
||||
|
@ -292,7 +292,9 @@ void InsetText::draw(BufferView * bv, LyXFont const & f,
|
||||
return;
|
||||
|
||||
if (top_x != int(x)) {
|
||||
if ((getMaxWidth(bv, this) > 0) && (TEXT(bv)->width != old_max_width)){
|
||||
if ((getMaxWidth(bv, this) > 0) &&
|
||||
(TEXT(bv)->width != old_max_width))
|
||||
{
|
||||
resizeLyXText(bv);
|
||||
need_update |= FULL;
|
||||
old_max_width = TEXT(bv)->width;
|
||||
@ -330,12 +332,6 @@ void InsetText::draw(BufferView * bv, LyXFont const & f,
|
||||
}
|
||||
x += TEXT_TO_INSET_OFFSET;
|
||||
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning Jürgen, why is this a block of its own? (Lgb)
|
||||
#warning because you told me to define variables only in local context (Jug)!
|
||||
#warning then make it a function/method of its own. (Lgb)
|
||||
#endif
|
||||
{
|
||||
int y = 0;
|
||||
Row * row = TEXT(bv)->GetRowNearY(y);
|
||||
int y_offset = baseline - row->ascent_of_text();
|
||||
@ -379,7 +375,7 @@ void InsetText::draw(BufferView * bv, LyXFont const & f,
|
||||
bv->screen()->Update(TEXT(bv), bv, y_offset, int(x));
|
||||
locked = true;
|
||||
}
|
||||
}
|
||||
|
||||
TEXT(bv)->refresh_y = 0;
|
||||
TEXT(bv)->status = LyXText::UNCHANGED;
|
||||
if ((need_update != CURSOR_PAR) &&
|
||||
|
@ -303,7 +303,7 @@ private:
|
||||
///
|
||||
mutable int inset_y;
|
||||
///
|
||||
mutable int old_max_width;
|
||||
mutable unsigned int old_max_width;
|
||||
///
|
||||
bool no_selection;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user