]> git.lyx.org Git - lyx.git/blobdiff - src/support/os_win32.cpp
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / support / os_win32.cpp
index b03cdb9ce61c50305426535f0bb78507b768cc47..385ebc606af64c4f2629e0d7f9615a4438048a20 100644 (file)
@@ -24,7 +24,7 @@
 #include "support/lstrings.h"
 #include "support/ExceptionMessage.h"
 
-#include "support/assert.h"
+#include "support/lassert.h"
 
 #include <cstdlib>
 #include <vector>
@@ -155,7 +155,7 @@ void init(int /* argc */, char * argv[])
                                (LPBYTE) buf, &bufSize);
                RegCloseKey(regKey);
                if ((retVal == ERROR_SUCCESS) && (bufSize <= MAX_PATH))
-                       cygdrive = buf;
+                       cygdrive = rtrim(string(buf), "/");
        }
 }