fix layout combox update bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7483 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2003-08-02 12:23:24 +00:00
parent fea30d5137
commit 44bb33dac2
7 changed files with 21 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* Toolbar.C (clearLayoutList): new methods, which resets
last_textclass_. The derived methods should call that.
2003-08-01 André Pönitz <poenitz@gmx.net>

View File

@ -57,6 +57,12 @@ void Toolbar::update(bool in_math, bool in_table)
}
void Toolbar::clearLayoutList()
{
last_textclass_ = -1;
}
bool Toolbar::updateLayoutList(int textclass)
{
// update the layout display

View File

@ -47,7 +47,7 @@ public:
/// Drop down the layout list
virtual void openLayoutList() = 0;
/// Erase the layout list
virtual void clearLayoutList() = 0;
virtual void clearLayoutList();
private:

View File

@ -1,3 +1,7 @@
2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* QLToolbar.C (clearLayoutList): call Toolbar::clearLayoutList
2003-07-30 Juergen Spitzmueller <j.spitzmueller@gmx.de>
* ui/QCitationDialogBase.ui: Omit correct signal for styleCO changes

View File

@ -186,6 +186,7 @@ void QLToolbar::clearLayoutList()
if (!combo_)
return;
Toolbar::clearLayoutList();
combo_->clear();
}

View File

@ -1,3 +1,7 @@
2003-08-02 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* XFormsToolbar.C (clearLayoutList): call Toolbar::clearLayoutList
2003-08-02 Lars Gullik Bjønnes <larsbj@lyx.org>
* Always use std::endl with lyxerr

View File

@ -232,6 +232,7 @@ void XFormsToolbar::clearLayoutList()
if (!combox_)
return;
Toolbar::clearLayoutList();
fl_clear_combox(combox_);
fl_redraw_object(combox_);
}