summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96f96b6)
raw | patch | inline | side by side (parent: 96f96b6)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 12 Oct 2007 05:38:02 +0000 (05:38 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 12 Oct 2007 05:38:02 +0000 (05:38 +0000) |
src/shape-editor.cpp | patch | blob | history |
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index d9a500e3c463cb2dd03a70c56cd181077010fec8..f029aab0a63b1d6acc21f975ed69ba5218c2841d 100644 (file)
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
sp_nodepath_select_all_from_subpath (this->nodepath, invert);
}
void ShapeEditor::select_next () {
- if (this->nodepath)
+ if (this->nodepath) {
sp_nodepath_select_next (this->nodepath);
+ if (this->nodepath->numSelected() >= 1) {
+ this->desktop->scroll_to_point(&(this->nodepath->singleSelectedCoords()), 1.0);
+ }
+ }
}
void ShapeEditor::select_prev () {
- if (this->nodepath)
+ if (this->nodepath) {
sp_nodepath_select_prev (this->nodepath);
+ if (this->nodepath->numSelected() >= 1) {
+ this->desktop->scroll_to_point(&(this->nodepath->singleSelectedCoords()), 1.0);
+ }
+ }
}
void ShapeEditor::show_handles (bool show) {