]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/lyx_gui.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / lyx_gui.C
index 42818e8c10cb51fae71e97f1ab6afd9c38a5f939..7713c528225e2613f92bb6836ebecece61a31729 100644 (file)
@@ -249,7 +249,7 @@ void lyx_gui::start(string const & batch, vector<string> const & files)
 
        int const geometryBitmask =
                XParseGeometry(geometry,
-                               &xpos, &ypos, &width, &height);
+                              &xpos, &ypos, &width, &height);
 
        // if width is not set by geometry, check it against monitor width
        if (!(geometryBitmask & WidthValue)) {
@@ -353,7 +353,7 @@ string const lyx_gui::hexname(LColor::color col)
           << setw(2) << (xcol.green / 256)
           << setw(2) << (xcol.blue  / 256);
 
-       return os.str().c_str();
+       return STRCONV(os.str());
 }