summaryrefslogtreecommitdiffstats
path: root/src/object/sp-guide.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-guide.cpp')
-rw-r--r--src/object/sp-guide.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/sp-guide.cpp b/src/object/sp-guide.cpp
index 4fe73ca4e..853511d42 100644
--- a/src/object/sp-guide.cpp
+++ b/src/object/sp-guide.cpp
@@ -471,7 +471,7 @@ void SPGuide::set_color(const unsigned r, const unsigned g, const unsigned b, bo
std::ostringstream os;
os << "rgb(" << r << "," << g << "," << b << ")";
//XML Tree being used directly while it shouldn't be
- getRepr()->setAttribute("inkscape:color", os.str().c_str());
+ setAttribute("inkscape:color", os.str());
}
}
@@ -483,7 +483,7 @@ void SPGuide::set_locked(const bool locked, bool const commit)
}
if (commit) {
- getRepr()->setAttribute("inkscape:locked", g_strdup(locked ? "true" : "false"));
+ setAttribute("inkscape:locked", locked ? "true" : "false");
}
}
@@ -495,7 +495,7 @@ void SPGuide::set_label(const char* label, bool const commit)
if (commit) {
//XML Tree being used directly while it shouldn't be
- getRepr()->setAttribute("inkscape:label", label);
+ setAttribute("inkscape:label", label);
}
}