diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2011-07-31 04:48:59 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2011-07-31 04:48:59 +0000 |
| commit | d7cc3ab4cde91c261e13a2a208ed125227e6b30f (patch) | |
| tree | 937f7e33fff59ea0535b8dc92ca995ae339d9fe2 /src/document.h | |
| parent | Dutch translation update (diff) | |
| download | inkscape-d7cc3ab4cde91c261e13a2a208ed125227e6b30f.tar.gz inkscape-d7cc3ab4cde91c261e13a2a208ed125227e6b30f.zip | |
Added overload for getObjectById(). Added safety by zeroing out invalid points (prevents accidental use of stale pointers).
(bzr r10521)
Diffstat (limited to 'src/document.h')
| -rw-r--r-- | src/document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/document.h b/src/document.h index 82a9a5158..c94b66c4d 100644 --- a/src/document.h +++ b/src/document.h @@ -174,6 +174,7 @@ public: sigc::connection connectCommit(CommitSignal::slot_type slot); void bindObjectToId(gchar const *id, SPObject *object); + SPObject *getObjectById(Glib::ustring const &id) const; SPObject *getObjectById(gchar const *id) const; sigc::connection connectIdChanged(const gchar *id, IDChangedSignal::slot_type slot); |
