projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
After adding a circle, refresh the ducks to reflect that the new layer(s) are selected.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
state_circle.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/state_circle.cpp
b/synfig-studio/trunk/src/gtkmm/state_circle.cpp
index
733567b
..
9196ce9
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/state_circle.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/state_circle.cpp
@@
-490,6
+490,8
@@
StateCircle_Context::~StateCircle_Context()
// Refresh the work area
get_work_area()->queue_draw();
// Refresh the work area
get_work_area()->queue_draw();
+ get_canvas_view()->queue_rebuild_ducks();
+
App::toolbox->refresh();
}
App::toolbox->refresh();
}
@@
-514,7
+516,7
@@
StateCircle_Context::make_circle(const Point& _p1, const Point& _p2)
Layer::Handle layer;
Layer::Handle layer;
- Canvas::Handle canvas
(get_canvas_view()->get_canvas())
;
+ Canvas::Handle canvas;
int depth(0);
// we are temporarily using the layer to hold something
int depth(0);
// we are temporarily using the layer to hold something
@@
-560,6
+562,11
@@
StateCircle_Context::make_circle(const Point& _p1, const Point& _p2)
// Set the looping flag
value_node_bline->set_loop(true);
// Set the looping flag
value_node_bline->set_loop(true);
+ if(!canvas)
+ canvas=get_canvas_view()->get_canvas();
+
+ value_node_bline->set_member_canvas(canvas);
+
// count how many layers we're going to be creating
int layers_to_create = this->layers_to_create();
// count how many layers we're going to be creating
int layers_to_create = this->layers_to_create();