]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
ws changes only
[lyx.git] / src / insets / insetnote.C
index c75e20f24d8d325e5db4f04a4f0c85ac3494660a..051b27d6d8cc89d558e9b7ce86c367d4c5a29cb9 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "support/std_sstream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::istringstream;
 using std::ostream;
@@ -43,7 +45,6 @@ InsetNote::InsetNote(BufferParams const & bp, string const & label)
 {
        params_.type = label;
        init();
-       setButtonLabel();
 }
 
 
@@ -54,7 +55,7 @@ InsetNote::InsetNote(InsetNote const & in)
 }
 
 
-InsetNote::~InsetNote() // MV
+InsetNote::~InsetNote()
 {
        InsetNoteMailer mailer("note", *this);
        mailer.hideDialog();
@@ -136,9 +137,7 @@ dispatch_result InsetNote::localDispatch(FuncRequest const & cmd)
        switch (cmd.action) {
 
        case LFUN_INSET_MODIFY: {
-               InsetNoteParams params;
-               InsetNoteMailer::string2params(cmd.argument, params);
-               params_.type = params.type;
+               InsetNoteMailer::string2params(cmd.argument, params_);
                setButtonLabel();
                bv->updateInset(this);
                return DISPATCHED;