summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c73fab)
raw | patch | inline | side by side (parent: 3c73fab)
author | acspike <acspike@users.sourceforge.net> | |
Sun, 26 Mar 2006 19:19:01 +0000 (19:19 +0000) | ||
committer | acspike <acspike@users.sourceforge.net> | |
Sun, 26 Mar 2006 19:19:01 +0000 (19:19 +0000) |
src/main.cpp | patch | blob | history |
diff --git a/src/main.cpp b/src/main.cpp
index fdfa3aa7bb1f57eaa42c96d2138979a505eb3f32..3c3655175b4290be8ddb1e95eee552925d0b6b9f 100644 (file)
--- a/src/main.cpp
+++ b/src/main.cpp
if (sp_export_id || sp_export_area_drawing) {
SPObject *o = NULL;
- if (sp_export_id) {
+ SPObject *o_area = NULL;
+ if (sp_export_id && sp_export_area_drawing) {
+ o = doc->getObjectById(sp_export_id);
+ o_area = SP_DOCUMENT_ROOT (doc);
+ } else if (sp_export_id) {
o = doc->getObjectById(sp_export_id);
+ o_area = o;
} else if (sp_export_area_drawing) {
o = SP_DOCUMENT_ROOT (doc);
+ o_area = o;
}
- SPObject *o_area = NULL;
- if (sp_export_area_drawing) {
- o_area = SP_DOCUMENT_ROOT (doc);
- } else if (sp_export_id) {
- o_area = doc->getObjectById(sp_export_id);
- }
-
if (o) {
if (!SP_IS_ITEM (o)) {
g_warning("Object with id=\"%s\" is not a visible item. Nothing exported.", sp_export_id);