summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1ad28e)
raw | patch | inline | side by side (parent: a1ad28e)
author | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 18 Jun 2008 22:29:59 +0000 (22:29 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Wed, 18 Jun 2008 22:29:59 +0000 (22:29 +0000) |
src/live_effects/effect.cpp | patch | blob | history |
index 08745a74ea331331117954cd5c2f5b44be2b2e76..4e500a4981fb6e73eece9fe5e6cdfd1cabbca4da 100644 (file)
}
/**
- * Effects have a parameter path set before they are applied by accepting a nonzero number of mouse
- * clicks. This method activates the pen context, which waits for the specified number of clicks.
- * Override Effect::acceptsNumParams() to set the number of expected mouse clicks.
+ * Effects can have a parameter path set before they are applied by accepting a nonzero number of
+ * mouse clicks. This method activates the pen context, which waits for the specified number of
+ * clicks. Override Effect::acceptsNumParams() to return the number of expected mouse clicks.
*/
void
Effect::doAcceptPathPreparations(SPLPEItem *lpeitem)
@@ -426,11 +426,12 @@ Effect::addPointParamHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem
void
Effect::addHelperPaths(SPLPEItem *lpeitem, SPDesktop *desktop)
{
+ g_return_if_fail(desktop);
g_return_if_fail(SP_IS_PATH(lpeitem));
if (providesKnotholder() && showOrigPath()) {
// TODO: we assume that if the LPE provides its own knotholder, there is no nodepath so we
- // must create the helper curve for the original path manually; when we allow nodepaths and
+ // must create the helper curve for the original path manually; once we allow nodepaths and
// knotholders alongside each other, this needs to be rethought!
SPCanvasItem *canvasitem = sp_nodepath_generate_helperpath(desktop, SP_PATH(lpeitem));
// TODO: Make sure the tempitem doesn't get destroyed when the mouse leaves the item