From fa76babe9c822ddc988fd3ce007bd0cf204f14ef Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 1 Apr 2008 17:51:18 +0000 Subject: [PATCH] Use the existing layers_to_create() method rather than reimplementing it. git-svn-id: http://svn.voria.com/code@1951 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_bline.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/state_bline.cpp b/synfig-studio/trunk/src/gtkmm/state_bline.cpp index a7ee701..5fcba88 100644 --- a/synfig-studio/trunk/src/gtkmm/state_bline.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_bline.cpp @@ -608,11 +608,7 @@ StateBLine_Context::run_() synfigapp::SelectionManager::LayerList layer_selection; // count how many layers we're going to be creating - int layers_to_create = 0; - if (get_layer_curve_gradient_flag()) layers_to_create++; - if (get_layer_plant_flag()) layers_to_create++; - if (get_layer_region_flag()) layers_to_create++; - if (get_layer_outline_flag()) layers_to_create++; + int layers_to_create = this->layers_to_create(); /////////////////////////////////////////////////////////////////////////// // C U R V E G R A D I E N T -- 2.7.4