]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetFlex.cpp
index 47f270cf879f44bae71467c39c79c8b6043218d6..378a21ad0c3bae8a8fb0e4b39add1c73d458c37d 100644 (file)
@@ -96,15 +96,14 @@ void InsetFlex::read(Buffer const & buf, Lexer & lex)
 }
 
 
-bool InsetFlex::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetFlex::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        Font tmpfont = mi.base.font;
        getDrawFont(mi.base.font);
        mi.base.font.reduce(Font(Font::ALL_SANE));
        mi.base.font.realize(tmpfont);
-       bool changed = InsetCollapsable::metrics(mi, dim);
+       InsetCollapsable::metrics(mi, dim);
        mi.base.font = tmpfont;
-       return changed;
 }
 
 
@@ -137,7 +136,6 @@ bool InsetFlex::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action) {
                // paragraph breaks not allowed in flex insets
                case LFUN_BREAK_PARAGRAPH:
-               case LFUN_BREAK_PARAGRAPH_KEEP_LAYOUT:
                case LFUN_BREAK_PARAGRAPH_SKIP:
                        status.enabled(false);
                        return true;