projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set the canvas of the bline used by the circle tool.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_radialcomposite.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp
b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp
index
fc6996d
..
a187568
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp
@@
-6,7
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-** Copyright (c) 2007 Chris Moore
+** Copyright (c) 2007
, 2008
Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-35,6
+35,7
@@
#include <stdexcept>
#include "general.h"
#include "color.h"
#include <stdexcept>
#include "general.h"
#include "color.h"
+#include "savecanvas.h"
#endif
/* === U S I N G =========================================================== */
#endif
/* === U S I N G =========================================================== */
@@
-226,6
+227,9
@@
ValueNode_RadialComposite::link_name(int i)const
{
assert(i>=0 && i<link_count());
{
assert(i>=0 && i<link_count());
+ if (get_file_version() < RELEASE_VERSION_0_61_08)
+ return strprintf("c%d",i);
+
switch(get_type())
{
case ValueBase::TYPE_COLOR:
switch(get_type())
{
case ValueBase::TYPE_COLOR:
@@
-261,7
+265,7
@@
ValueNode_RadialComposite::get_link_index_from_name(const String &name)const
if(name.empty())
throw Exception::BadLinkName(name);
if(name.empty())
throw Exception::BadLinkName(name);
- if(name[0]=='c')
+ if(name[0]=='c'
&& name.size() == 2 && name[1]-'0' >= 0 && name[1]-'0' < link_count()
)
return name[1]-'0';
switch(get_type())
return name[1]-'0';
switch(get_type())