]> git.lyx.org Git - lyx.git/commitdiff
* src/insets/InsetWrap.{cpp,h}:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 2 Mar 2008 16:34:17 +0000 (16:34 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 2 Mar 2008 16:34:17 +0000 (16:34 +0000)
- button label has to be set before drawing (bug 4602).

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

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

index 580c8c5a9c05f18a2cc123991e19115a0bee6ce7..b5b35e46cdd606bde68f356f3ce5f45d5f5577c0 100644 (file)
@@ -192,6 +192,14 @@ 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 789774241d89c17dfa8da11edf1b87709ebf3c7b..3256b03d84f6766010b7d13a793878fa1495105e 100644 (file)
@@ -53,6 +53,8 @@ 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; }