diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-08-04 06:59:03 +0000 |
|---|---|---|
| committer | Jasper van de Gronde <th.v.d.gronde@hccnet.nl> | 2010-08-04 06:59:03 +0000 |
| commit | 97893dd02e0f080b39cebcf2df9f532978e7ca06 (patch) | |
| tree | 95b89b621274baa0479ee67c9cf4acc4b7afed79 | |
| parent | Small fix to emf filter that makes it build using TDM's mingw 4.5.0 (diff) | |
| download | inkscape-97893dd02e0f080b39cebcf2df9f532978e7ca06.tar.gz inkscape-97893dd02e0f080b39cebcf2df9f532978e7ca06.zip | |
Fix for subtle bug in parsing export area, found by Vaughn Spurlin using Coverity
(bzr r9683)
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9f7bc9ad3..78b66d847 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1345,7 +1345,7 @@ sp_do_export_png(SPDocument *doc) 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; } |
