]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetWrap.cpp
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / insets / InsetWrap.cpp
index b05d5dba4790bf9634652b2992d10814259176a7..8987405cb8157c39cd0c4294fc705ac3b90ce5fc 100644 (file)
@@ -47,10 +47,6 @@ InsetWrap::InsetWrap(Buffer * buf, string const & type)
        : InsetCaptionable(buf)
 {
        setCaptionType(type);
-       params_.lines = 0;
-       params_.placement = "o";
-       params_.overhang = Length(0, Length::PCW);
-       params_.width = Length(50, Length::PCW);
 }
 
 
@@ -65,7 +61,7 @@ void InsetWrap::setCaptionType(std::string const & type)
 {
        InsetCaptionable::setCaptionType(type);
        params_.type = captionType();
-       setLabel(_("wrap: ") + floatName(type));
+       setLabel(_("Wrap: ") + floatName(type));
 }