summaryrefslogtreecommitdiffstats
path: root/src/sp-guide.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-05-26 21:17:37 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-05-26 21:17:37 +0000
commitd08f8e9ed468767cc64766eb80ea134bb5edb197 (patch)
tree5ef0aa6763dc38420a0479469d4c2c8b352af65d /src/sp-guide.cpp
parentrename "set width" and "units per em" to "Em-size" (diff)
downloadinkscape-d08f8e9ed468767cc64766eb80ea134bb5edb197.tar.gz
inkscape-d08f8e9ed468767cc64766eb80ea134bb5edb197.zip
add entry widget to guideline dialog to change guide's label
(and fix some label xml writing and rendering bugs) (bzr r10234)
Diffstat (limited to 'src/sp-guide.cpp')
-rw-r--r--src/sp-guide.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp
index 1e51ee4d5..584a6a366 100644
--- a/src/sp-guide.cpp
+++ b/src/sp-guide.cpp
@@ -412,7 +412,7 @@ void sp_guide_set_normal(SPGuide &guide, Geom::Point const normal_to_line, bool
*/
}
-void sp_guide_set_label(SPGuide &guide, char* label, bool const commit)
+void sp_guide_set_label(SPGuide &guide, const char* label, bool const commit)
{
g_assert(SP_IS_GUIDE(&guide));
if (guide.views){
@@ -421,7 +421,7 @@ void sp_guide_set_label(SPGuide &guide, char* label, bool const commit)
if (commit){
//XML Tree being used directly while it shouldn't be
- guide.getRepr()->setAttribute("label", label);
+ guide.getRepr()->setAttribute("inkscape:label", label);
}
}