Skip to content

Commit

Permalink
libdeng2|Fixed: Setting dependency of ScalarRule
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 23, 2013
1 parent 0430fba commit 035f688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doomsday/libdeng2/src/widgets/scalarrule.cpp
Expand Up @@ -46,7 +46,7 @@ void ScalarRule::set(Rule const *target, TimeDelta transition)
set(target->value(), transition);

// Keep a reference.
dependsOn(_rule);
dependsOn(target);
_rule = target;
}

Expand Down
6 changes: 3 additions & 3 deletions doomsday/tools/shell/shell-text/src/shellapp.cpp
Expand Up @@ -30,11 +30,11 @@ struct ShellApp::Instance
{
logWidget = new LogWidget;

ScalarRule *anim = new ScalarRule(0);
anim->set(5, 2);
ScalarRule *anim = de::refless(new ScalarRule(0));
anim->set(self.rootWidget().viewWidth(), 2);

logWidget->rule()
.setInput(RectangleRule::Left, de::refless(anim))
.setInput(RectangleRule::Left, anim)
.setInput(RectangleRule::Top, de::refless(new ConstantRule(0)))
.setInput(RectangleRule::Width, self.rootWidget().viewWidth())
.setInput(RectangleRule::Height, self.rootWidget().viewHeight());
Expand Down

0 comments on commit 035f688

Please sign in to comment.