summaryrefslogtreecommitdiffstats
path: root/src/sp-conn-end-pair.cpp
diff options
context:
space:
mode:
authormjwybrow <mjwybrow@users.sourceforge.net>2006-02-11 01:57:03 +0000
committermjwybrow <mjwybrow@users.sourceforge.net>2006-02-11 01:57:03 +0000
commitdf24f0e2b0a31cd21cf96cb01c4d5eab041c1496 (patch)
tree3f2e0551372f46d8dbecde68b841fe102398f891 /src/sp-conn-end-pair.cpp
parentbug 1412504: infinite loop when moving a word to the left when already at the... (diff)
downloadinkscape-df24f0e2b0a31cd21cf96cb01c4d5eab041c1496.tar.gz
inkscape-df24f0e2b0a31cd21cf96cb01c4d5eab041c1496.zip
* src/sp-conn-end-pair.cpp, src/conn-avoid-ref.cpp:
Fix two bugs from my commit yesterday. (bzr r117)
Diffstat (limited to 'src/sp-conn-end-pair.cpp')
-rw-r--r--src/sp-conn-end-pair.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sp-conn-end-pair.cpp b/src/sp-conn-end-pair.cpp
index bb5d89107..5b36f8796 100644
--- a/src/sp-conn-end-pair.cpp
+++ b/src/sp-conn-end-pair.cpp
@@ -220,14 +220,18 @@ SPConnEndPair::update(void)
void SPConnEndPair::storeIds(void)
{
if (_connEnd[0]->href) {
- GQuark itemId = g_quark_from_string(_connEnd[0]->href);
+ // href begins with a '#' which we don't want.
+ const char *startId = _connEnd[0]->href + 1;
+ GQuark itemId = g_quark_from_string(startId);
_connRef->setEndPointId(Avoid::VertID::src, itemId);
}
else {
_connRef->setEndPointId(Avoid::VertID::src, 0);
}
if (_connEnd[1]->href) {
- GQuark itemId = g_quark_from_string(_connEnd[1]->href);
+ // href begins with a '#' which we don't want.
+ const char *endId = _connEnd[1]->href + 1;
+ GQuark itemId = g_quark_from_string(endId);
_connRef->setEndPointId(Avoid::VertID::tar, itemId);
}
else {