mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
b6126838b5
commit
2356001ed3
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user