diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-11-29 00:37:30 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-11-29 00:37:30 +0000 |
| commit | 32598fdd4d1e85228e46242d37f83c739591a078 (patch) | |
| tree | 1ceb6e7e072e5be58bb917655eea9610b0e2104e /src/inkscape.cpp | |
| parent | Fix for 171466 : F/S set swatch preview column name (diff) | |
| download | inkscape-32598fdd4d1e85228e46242d37f83c739591a078.tar.gz inkscape-32598fdd4d1e85228e46242d37f83c739591a078.zip | |
Fix for 1073128 : Command line PNG export fails if FeFlood filter primitive is present
(bzr r11913)
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index fc9a9783f..fc823f8b7 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -1270,6 +1270,10 @@ inkscape_active_document (void) { if (SP_ACTIVE_DESKTOP) { return sp_desktop_document (SP_ACTIVE_DESKTOP); + } else if (!inkscape->document_set.empty()) { + // If called from the command line there will be no desktop + // So 'fall back' to take the first listed document in the Inkscape instance + return inkscape->document_set.begin()->first; } return NULL; |
