]> git.lyx.org Git - features.git/commitdiff
* src/insets/InsetWrap.{cpp,h}:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 2 Mar 2008 16:56:57 +0000 (16:56 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 2 Mar 2008 16:56:57 +0000 (16:56 +0000)
- fix the fix of rev. 23390. Thanks, Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23392 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetWrap.cpp
src/insets/InsetWrap.h

index b5b35e46cdd606bde68f356f3ce5f45d5f5577c0..0b0ab1f388894ea933fcbfc880626c79f6477ec5 100644 (file)
@@ -107,6 +107,7 @@ bool InsetWrap::getStatus(Cursor & cur, FuncRequest const & cmd,
 
 void InsetWrap::updateLabels(ParIterator const & it)
 {
+       setLabel(_("wrap: ") + floatName(params_.type, buffer().params()));
        Counters & cnts = buffer().params().documentClass().counters();
        string const saveflt = cnts.current_float();
 
@@ -192,14 +193,6 @@ void InsetWrap::read(Lexer & lex)
 }
 
 
-void InsetWrap::draw(PainterInfo & pi, int x, int y) const
-{
-       const_cast<InsetWrap &>(*this).setLabel(
-               _("wrap: ") + floatName(params_.type, buffer().params()));
-       InsetCollapsable::draw(pi, x, y);
-}
-
-
 void InsetWrap::validate(LaTeXFeatures & features) const
 {
        features.require("wrapfig");
index 3256b03d84f6766010b7d13a793878fa1495105e..789774241d89c17dfa8da11edf1b87709ebf3c7b 100644 (file)
@@ -53,8 +53,6 @@ public:
        ///
        void read(Lexer & lex);
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       ///
        void validate(LaTeXFeatures & features) const;
        ///
        InsetCode lyxCode() const { return WRAP_CODE; }