summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d819256)
raw | patch | inline | side by side (parent: d819256)
author | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | |
Wed, 4 Aug 2010 06:59:03 +0000 (08:59 +0200) | ||
committer | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | |
Wed, 4 Aug 2010 06:59:03 +0000 (08:59 +0200) |
src/main.cpp | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index 9f7bc9ad33d7d9bb9f00d329454eb980a89cf6e3..78b66d8478766b185c65473e63c70a39e01e919c 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
if (sp_export_area) {
/* Try to parse area (given in SVG pixels) */
gdouble x0,y0,x1,y1;
- if (!sscanf(sp_export_area, "%lg:%lg:%lg:%lg", &x0, &y0, &x1, &y1) == 4) {
+ if (sscanf(sp_export_area, "%lg:%lg:%lg:%lg", &x0, &y0, &x1, &y1) != 4) {
g_warning("Cannot parse export area '%s'; use 'x0:y0:x1:y1'. Nothing exported.", sp_export_area);
return;
}