From ac5a2f5f35a8dbce9ea5b68e6ce7c6d377cfec22 Mon Sep 17 00:00:00 2001 From: leo Date: Sat, 8 Jan 2000 17:51:32 +0000 Subject: Small fixes git-svn-id: http://svn.leocad.org/trunk@54 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- linux/dlgfile.cpp | 23 +++++++++++++++++++++++ linux/module.mk | 5 +++-- win/Povdlg.cpp | 5 +++-- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100755 linux/dlgfile.cpp 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 + +// ========================================================= +// 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); -- cgit v1.2.3