]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetert.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetert.C
index b10d3d5c633bdd4f90e6b16685d642507db87f6c..15e936c5d201310f9aa7f5b120d24ff2615ae09a 100644 (file)
@@ -322,6 +322,8 @@ bool InsetERT::getStatus(LCursor & cur, FuncRequest const & cmd,
                case LFUN_BIBITEM_INSERT:
                case LFUN_LINE_INSERT:
                case LFUN_PAGEBREAK_INSERT:
+               case LFUN_CLEARPAGE_INSERT:
+               case LFUN_CLEARDOUBLEPAGE_INSERT:
                case LFUN_LANGUAGE:
                case LFUN_LAYOUT:
                case LFUN_LAYOUT_PARAGRAPH:
@@ -395,14 +397,16 @@ bool InsetERT::insetAllowed(InsetBase::Code /* code */) const
 }
 
 
-void InsetERT::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetERT::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        LyXFont tmpfont = mi.base.font;
        getDrawFont(mi.base.font);
        mi.base.font.realize(tmpfont);
        InsetCollapsable::metrics(mi, dim);
        mi.base.font = tmpfont;
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }