]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetlabel.C
index fcab20f0258f40be57694eea103113bed21d03ab..9c3de2e08e31e8344455c7a94e9a89a4724b9e88 100644 (file)
@@ -22,6 +22,8 @@
 #include "support/LOstream.h"
 #include "support/lstrings.h" //frontStrip, strip
 
+using namespace lyx::support;
+
 using std::ostream;
 using std::vector;
 using std::pair;
@@ -39,20 +41,19 @@ InsetLabel::InsetLabel(InsetCommandParams const & p)
 
 InsetLabel::~InsetLabel()
 {
-       InsetCommandMailer mailer("label", *this);
-       mailer.hideDialog();
+       InsetCommandMailer("label", *this).hideDialog();
 }
 
 
-vector<string> const InsetLabel::getLabelList() const
+void InsetLabel::getLabelList(std::vector<string> & list) const
 {
-       return vector<string>(1, getContents());
+       list.push_back(getContents());
 }
 
 
 dispatch_result InsetLabel::localDispatch(FuncRequest const & cmd)
 {
-       Inset::RESULT result = UNDISPATCHED;
+       InsetOld::RESULT result = UNDISPATCHED;
 
        switch (cmd.action) {