summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageModule.h')
-rw-r--r--src/PatchageModule.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PatchageModule.h b/src/PatchageModule.h
index 58fa096..f58948d 100644
--- a/src/PatchageModule.h
+++ b/src/PatchageModule.h
@@ -35,7 +35,7 @@ class PatchageModule : public Module
{
public:
PatchageModule(Patchage* app, const string& title, ModuleType type, double x=0, double y=0)
- : Module(*app->canvas(), title, x, y),
+ : Module(app->canvas(), title, x, y),
m_app(app),
m_type(type)
{
@@ -79,8 +79,8 @@ public:
if (loc.x != -1)
move_to(loc.x, loc.y);
else
- move_to((m_canvas.width()/2) - 100 + rand() % 400,
- (m_canvas.height()/2) - 100 + rand() % 400);
+ move_to((m_canvas.lock()->width()/2) - 100 + rand() % 400,
+ (m_canvas.lock()->height()/2) - 100 + rand() % 400);
}
void split() {