summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleo2000-01-08 17:51:32 +0000
committerleo2000-01-08 17:51:32 +0000
commitac5a2f5f35a8dbce9ea5b68e6ce7c6d377cfec22 (patch)
treeea713229d57fede10d2551743768dfba7cc2b166
parent3aff6ccf51cc61c7ca23d78143e7852a252408cf (diff)
Small fixes
git-svn-id: http://svn.leocad.org/trunk@54 c7d43263-9d01-0410-8a33-9dba5d9f93d6
-rwxr-xr-xlinux/dlgfile.cpp23
-rw-r--r--linux/module.mk5
-rw-r--r--win/Povdlg.cpp5
3 files changed, 29 insertions, 4 deletions
diff --git a/linux/dlgfile.cpp b/linux/dlgfile.cpp
new file mode 100755
index 0000000..90d67ea
--- /dev/null
+++ b/linux/dlgfile.cpp
@@ -0,0 +1,23 @@
+//
+// This file holds all the dialogs that are called
+// from the 'File' submenu:
+//
+// - Piece Library Manager
+//
+
+#include <gtk/gtk.h>
+
+// =========================================================
+// Piece Library Manager
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/linux/module.mk b/linux/module.mk
index 0c8584b..65e8f0f 100644
--- a/linux/module.mk
+++ b/linux/module.mk
@@ -1,6 +1,7 @@
SRC += linux/custom.cpp linux/gdkgl.c linux/gtkglarea.c \
- linux/dialogs.cpp linux/dlgpiece.cpp linux/gtktools.cpp \
- linux/main.cpp linux/menu.cpp linux/system.cpp linux/toolbar.cpp
+ linux/dialogs.cpp linux/dlgpiece.cpp linux/dlgfile.cpp \
+ linux/gtktools.cpp linux/main.cpp linux/menu.cpp \
+ linux/system.cpp linux/toolbar.cpp
CFLAGS += $(shell gtk-config --cflags)
CXXFLAGS += $(shell gtk-config --cflags)
diff --git a/win/Povdlg.cpp b/win/Povdlg.cpp
index d5537d1..e3c8a66 100644
--- a/win/Povdlg.cpp
+++ b/win/Povdlg.cpp
@@ -78,8 +78,9 @@ void CPOVDlg::OnOK()
if (m_strOut.GetLength() == 0)
return;
- if (m_strLGEO[m_strLGEO.GetLength()-1] != '\\')
- m_strLGEO += "\\";
+ if (m_strLGEO.GetLength() > 0)
+ if (m_strLGEO[m_strLGEO.GetLength()-1] != '\\')
+ m_strLGEO += "\\";
theApp.WriteProfileInt ("Settings", "POV Render", m_bRender);
theApp.WriteProfileString ("Settings", "POV-Ray", m_strPOV);