Revision: 2136
http://synfig.svn.sourceforge.net/synfig/?rev=2136&view=rev
Author: dooglus
Date: 2008-10-26 20:02:26 +0000 (Sun, 26 Oct 2008)
Log Message:
-----------
Make Canvas::find_canvas() and Canvas::surefind_canvas() look more alike. No
functional change here.
Modified Paths:
--------------
synfig-core/trunk/src/synfig/canvas.cpp
Modified: synfig-core/trunk/src/synfig/canvas.cpp
===================================================================
--- synfig-core/trunk/src/synfig/canvas.cpp 2008-10-26 20:02:07 UTC (rev
2135)
+++ synfig-core/trunk/src/synfig/canvas.cpp 2008-10-26 20:02:26 UTC (rev
2136)
@@ -596,7 +596,8 @@
Canvas::ConstHandle
Canvas::find_canvas(const String &id)const
{
- if(is_inline() && parent_)return parent_->find_canvas(id);
+ if(is_inline() && parent_)
+ return parent_->find_canvas(id);
if(id.empty())
return this;
@@ -654,7 +655,7 @@
// If the first character is the separator, then
// this references the root canvas.
- if(id.find_first_of(':')==0)
+ if(id[0]==':')
return get_root()->find_canvas(string(id,1));
// Now we know that the requested Canvas is in a child
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl