]> git.lyx.org Git - lyx.git/blobdiff - src/combox.C
Fix class switching bug
[lyx.git] / src / combox.C
index 02e31059b1391f3f27d4f624c76fda942c2587ca..9fad5bcb35e32b4d909062454d42efe7ccbc80d7 100644 (file)
@@ -356,7 +356,7 @@ void Combox::input_cb(FL_OBJECT * ob, long)
 
        char const * text = fl_get_input(ob);
 
-       combo->addto(text ? text : string());
+       combo->addto(text ? string(text) : string());
        combo->is_empty = false;
 }