]> git.lyx.org Git - features.git/commitdiff
Fixup c49cd699: QString::toStdString is not always available
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 28 Dec 2016 21:44:40 +0000 (22:44 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 29 Dec 2016 07:43:31 +0000 (08:43 +0100)
This method requires STL support in Qt. Fortunately, it is not needed
here.

src/frontends/qt4/GuiDelimiter.cpp
status.22x

index fb92871bf9e11d53b59bd6dbbaa0252db9400b3b..9cb4ae3bf27a9de4fd012e110e252b1839a6cb59 100644 (file)
@@ -412,9 +412,9 @@ void GuiDelimiter::on_swapPB_clicked()
                QChar(nrms.fontcode) : toqstr(docstring(1, nrms.unicode)));
 
        // Handle unencoded "symbol" of "(None)".
-       if (lqs.toStdString() == "?")
+       if (lqs == "?")
                lqs = qt_("(None)");
-       if(rqs.toStdString() == "?")
+       if(rqs == "?")
                rqs = qt_("(None)");
 
        // Locate matching QListWidgetItem.
index d7cab35d4a36de32b3e6f0ceb0dc46d6a10e11bd..11c734a822033d89e9f156593afbafb83bdba271 100644 (file)
@@ -41,6 +41,8 @@ What's new
 
 - Implement wrap-around in change tracking's next-change function (bug 10388).
 
+- The Math Delimiters dialog now has a "Swap & Reverse" button (bug 10457).
+
 - Document Settings > "Output" has been renamed to "Formats" now that it
   also contains the option "Save transient properties".