Skip to content

Commit

Permalink
- OMPlot now compiles on Linux
Browse files Browse the repository at this point in the history
- Made OMPlot not crash if too few arguments are given


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8183 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 11, 2011
1 parent f149e16 commit 98628c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions OMPlot/OMPlotGUI/Makefile.unix.in
Expand Up @@ -21,11 +21,11 @@ $(NAME)$(EXE): Makefile
make -f Makefile
ifeq ($(EXE),.app)
$(NAME): $(NAME)$(EXE) always
cp -p $</Contents/MacOS/$(NAME) $@
cp -p ../bin/$</Contents/MacOS/$(NAME) ../bin/$@
endif

build: $(NAME)
cp -p $(NAME) $(builddir_bin)
cp -p ../bin/$(NAME) $(builddir_bin)

Makefile.unix: Makefile.unix.in
cd $(top_builddir); ./config.status
2 changes: 1 addition & 1 deletion OMPlot/OMPlotGUI/OMPlotGUI.config.in
@@ -1,2 +1,2 @@
LIBS += -lqwt
LIBS += -lqwt@with_qwt_suffix@
INCLUDEPATH += @with_qwt@
6 changes: 5 additions & 1 deletion OMPlot/OMPlotGUI/main.cpp
Expand Up @@ -35,6 +35,10 @@

int main(int argc, char *argv[])
{
if (argc < 14) {
printf("Usage: %s arg1 ... arg13 variables\n", *argv);
return 1;
}
QApplication a(argc, argv);

try {
Expand All @@ -55,6 +59,6 @@ int main(int argc, char *argv[])
msgBox->setDefaultButton(QMessageBox::Ok);
msgBox->exec();

return -1;
return 1;
}
}

0 comments on commit 98628c0

Please sign in to comment.