Revision: 2359
http://synfig.svn.sourceforge.net/synfig/?rev=2359&view=rev
Author: gballintijn
Date: 2009-04-12 12:48:42 +0000 (Sun, 12 Apr 2009)
Log Message:
-----------
Fixed double initialitation of the field state_ in InputDevice.
Modified Paths:
--------------
synfig-studio/trunk/src/synfigapp/inputdevice.cpp
Modified: synfig-studio/trunk/src/synfigapp/inputdevice.cpp
===================================================================
--- synfig-studio/trunk/src/synfigapp/inputdevice.cpp 2009-04-12 12:23:09 UTC
(rev 2358)
+++ synfig-studio/trunk/src/synfigapp/inputdevice.cpp 2009-04-12 12:48:42 UTC
(rev 2359)
@@ -160,36 +160,13 @@
InputDevice::InputDevice(const synfig::String id_, Type type_):
id_(id_),
type_(type_),
- state_((type_==TYPE_PEN)?"sketch":"normal"),
+ state_((type_==TYPE_PEN)?"draw":"normal"),
foreground_color_(Color::black()),
background_color_(Color::white()),
bline_width_(Distance(1,Distance::SYSTEM_POINTS)),
opacity_(1.0f),
blend_method_(Color::BLEND_COMPOSITE)
{
- switch(type_)
- {
- case TYPE_MOUSE:
- state_="normal";
- break;
-
- case TYPE_PEN:
- state_="draw";
- break;
-
- case TYPE_ERASER:
- state_="normal";
- break;
-
- case TYPE_CURSOR:
- state_="normal";
- break;
-
- default:
- state_="normal";
- break;
- }
-
device_settings=new DeviceSettings(this);
Main::settings().add_domain(device_settings,"input_device."+id_);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl