Fixed use of uninitialized variable code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4037 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-04-22 14:31:47 +00:00
parent b6126838b5
commit 2356001ed3
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-04-22 Juergen Vigna <jug@sad.it>
* insettext.C (insetUnlock): code was uninitialized in some situations.
2002-04-19 Herbert Voss <voss@perce.de>
* insetgraphic.C (prepareFile): return filename without

View File

@ -783,7 +783,7 @@ void InsetText::insetUnlock(BufferView * bv)
hideInsetCursor(bv);
no_selection = true;
locked = false;
int code;
int code = NONE;
#if 0
if (drawFrame_ == LOCKED)
code = CURSOR|CLEAR_FRAME;
@ -817,7 +817,8 @@ void InsetText::insetUnlock(BufferView * bv)
#if 0
updateLocal(bv, code, false);
#else
setUpdateStatus(bv, code);
if (code != NONE)
setUpdateStatus(bv, code);
#endif
}