]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/xscreen.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / xscreen.C
index c87dcb3d76f266993a4fc7d37f2b3afa7488de1e..40d72f39532751f7dc8a3b798e52bd916a117cf4 100644 (file)
@@ -4,7 +4,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author unknown
- * \author John Levon 
+ * \author John Levon
  *
  * Full author contact details are available in file CREDITS
  */
@@ -57,7 +57,6 @@ GC createGC()
 } // namespace anon
 
 
-// Constructor
 XScreen::XScreen(XWorkArea & o)
        : LyXScreen(), owner_(o)
 {
@@ -81,7 +80,8 @@ XScreen::~XScreen()
 
 void XScreen::setCursorColor()
 {
-       if (!lyxColorHandler.get()) return;
+       if (!lyxColorHandler.get())
+               return;
 
        GC gc = lyxColorHandler->getGCForeground(LColor::cursor);
 
@@ -205,7 +205,8 @@ void XScreen::expose(int x, int y, int w, int h)
 
 void XScreen::draw(LyXText * text, BufferView * bv, unsigned int y)
 {
-       if (cursor_visible_) hideCursor();
+       if (cursor_visible_)
+               hideCursor();
 
        int const old_first = text->first_y;
        bool const internal = (text == bv->text);