]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QWrap.C
the convert patch
[lyx.git] / src / frontends / qt2 / QWrap.C
index e67ab77f3542e555e2de150af839d35a91f7c33e..72fd1181b1b5f7dde3593118f6f5ff03f2ec38b9 100644 (file)
@@ -27,7 +27,6 @@
 #include <qlineedit.h>
 #include <qpushbutton.h>
 
-using lyx::support::strToDbl;
 
 using std::string;
 
@@ -59,7 +58,7 @@ void QWrap::build_dialog()
 
 void QWrap::apply()
 {
-       double const value = strToDbl(fromqstr(dialog_->widthED->text()));
+       double const value = convert<double>(fromqstr(dialog_->widthED->text()));
        LyXLength::UNIT unit = dialog_->unitsLC->currentLengthItem();
        if (dialog_->widthED->text().isEmpty())
                unit = LyXLength::UNIT_NONE;