]> git.lyx.org Git - lyx.git/blobdiff - src/LyXSendto.C
small changes to ButtonController usage
[lyx.git] / src / LyXSendto.C
index 2730d26663dd2d7cc62a13dd03ffae6a1756b0d1..8deb0ad0367217a77ecc67753935027891f97901 100644 (file)
@@ -24,7 +24,8 @@ extern bool CreatePostscript(Buffer * buffer, bool wait);
 
 void MenuSendto()
 {
-    static int ow = -1, oh;
+    static int ow = -1;
+    static int oh;
 
     // do this only if the command is empty
     if (!fl_get_input(fd_form_sendto->input_cmd) &&
@@ -81,7 +82,8 @@ void SendtoApplyCB(FL_OBJECT *, long)
        }
     }
 
-    string fname = OnlyFilename(ChangeExtension(buffer->getLatexName(), ftypeext));
+    string fname = OnlyFilename(ChangeExtension(buffer->getLatexName(),
+                                               ftypeext));
     if (!contains(command, "$$FName"))
         command = "( " + command + " ) <$$FName";
     command = subst(command, "$$FName", fname);