Fixed InsetText's frame redrawing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3674 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-03-06 10:40:31 +00:00
parent dfcfccfc36
commit 06b35a161d
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2002-03-06 Juergen Vigna <jug@sad.it>
* insettext.C (draw): fixed frame redrawing.
* insetert.C (status): pay attention the bv can be 0 here!
(getMaxWidth): add the default leftMargin

View File

@ -485,8 +485,10 @@ void InsetText::draw(BufferView * bv, LyXFont const & f,
lt->refresh_y = 0;
lt->status(bv, LyXText::UNCHANGED);
if ((need_update != CURSOR_PAR) &&
((drawFrame_ == ALWAYS) || ((drawFrame_ == LOCKED) && locked))) {
if ((drawFrame_ == ALWAYS) ||
((cleared || (need_update != CURSOR_PAR)) &&
(drawFrame_ == LOCKED) && locked))
{
drawFrame(pain, cleared);
} else if (need_update & CLEAR_FRAME) {
clearFrame(pain, cleared);