summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/export.cpp
diff options
context:
space:
mode:
authormc <>2015-02-18 10:25:23 +0000
committerMarc Jeanmougin <mc>2015-02-18 10:25:23 +0000
commit9e21d00fb1053897420f80d05a9815c5b2bbf312 (patch)
tree9c0f61257c24e936d07526bd4b71a399825519b6 /src/ui/dialog/export.cpp
parentOMG IT'S COMPILING. (diff)
downloadinkscape-9e21d00fb1053897420f80d05a9815c5b2bbf312.tar.gz
inkscape-9e21d00fb1053897420f80d05a9815c5b2bbf312.zip
I can't really understand why, but i can now launch inkscape without it segfaulting.
That's an improvement. Next thing: code cleaning, replacing containers with vectors (bzr r13922.1.4)
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/export.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp
index fc6094c9f..0667ba721 100644
--- a/src/ui/dialog/export.cpp
+++ b/src/ui/dialog/export.cpp
@@ -817,9 +817,9 @@ void Export::onAreaToggled ()
one that's nice */
if (filename.empty()) {
const gchar * id = "object";
- const SelContainer reprlst = SP_ACTIVE_DESKTOP->getSelection()->reprList();
- for(SelContainer::const_iterator i=reprlst.begin(); reprlst.end() != i; i++) {
- Inkscape::XML::Node * repr = (Inkscape::XML::Node *)(*i);
+ const std::vector<XML::Node*> reprlst = SP_ACTIVE_DESKTOP->getSelection()->reprList();
+ for(std::vector<XML::Node*>::const_iterator i=reprlst.begin(); reprlst.end() != i; i++) {
+ Inkscape::XML::Node * repr = (*i);
if (repr->attribute("id")) {
id = repr->attribute("id");
break;
@@ -1226,7 +1226,7 @@ void Export::onExport ()
break;
}
case SELECTION_SELECTION: {
- SelContainer reprlst;
+ std::vector<XML::Node*> reprlst;
SPDocument * doc = SP_ACTIVE_DOCUMENT;
bool modified = false;
@@ -1234,8 +1234,8 @@ void Export::onExport ()
DocumentUndo::setUndoSensitive(doc, false);
reprlst = desktop->getSelection()->reprList();
- for(SelContainer::const_iterator i=reprlst.begin(); reprlst.end() != i; i++) {
- Inkscape::XML::Node * repr = dynamic_cast<Inkscape::XML::Node *>(*i);
+ for(std::vector<Inkscape::XML::Node*>::const_iterator i=reprlst.begin(); reprlst.end() != i; i++) {
+ Inkscape::XML::Node * repr = *i;
const gchar * temp_string;
Glib::ustring dir = Glib::path_get_dirname(filename.c_str());
const gchar* docURI=SP_ACTIVE_DOCUMENT->getURI();