mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 18:52:46 +00:00
Forgot setting of status_ variable in InsetERT::edit functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2509 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
44d8be16d0
commit
1279189bd0
@ -1,3 +1,7 @@
|
|||||||
|
2001-08-14 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
|
* insetert.C (edit): forgot to set status_ in edit calls!
|
||||||
|
|
||||||
2001-08-14 Dekel Tsur <dekelts@tau.ac.il>
|
2001-08-14 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* insettext.C: Compilation fix
|
* insettext.C: Compilation fix
|
||||||
|
@ -197,6 +197,13 @@ void InsetERT::setFont(BufferView *, LyXFont const &, bool, bool selectall)
|
|||||||
void InsetERT::edit(BufferView * bv, int x, int y, unsigned int button)
|
void InsetERT::edit(BufferView * bv, int x, int y, unsigned int button)
|
||||||
{
|
{
|
||||||
InsetCollapsable::edit(bv, x, y, button);
|
InsetCollapsable::edit(bv, x, y, button);
|
||||||
|
if (status_ != Inlined) {
|
||||||
|
if (collapsed_) {
|
||||||
|
status(0, Collapsed);
|
||||||
|
} else {
|
||||||
|
status(0, Open);
|
||||||
|
}
|
||||||
|
}
|
||||||
set_latex_font(bv);
|
set_latex_font(bv);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,6 +219,13 @@ Inset::EDITABLE InsetERT::editable() const
|
|||||||
void InsetERT::edit(BufferView * bv, bool front)
|
void InsetERT::edit(BufferView * bv, bool front)
|
||||||
{
|
{
|
||||||
InsetCollapsable::edit(bv, front);
|
InsetCollapsable::edit(bv, front);
|
||||||
|
if (status_ != Inlined) {
|
||||||
|
if (collapsed_) {
|
||||||
|
status(0, Collapsed);
|
||||||
|
} else {
|
||||||
|
status(0, Open);
|
||||||
|
}
|
||||||
|
}
|
||||||
set_latex_font(bv);
|
set_latex_font(bv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user