From e95ca440dd319a392b43771c44cb0b2c9d1779a0 Mon Sep 17 00:00:00 2001 From: Ulrich Huber Date: Tue, 12 Feb 2019 00:59:15 +0100 Subject: [PATCH] Fix background apply leading to segfault --- src/control/PageBackgroundChangeController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/PageBackgroundChangeController.cpp b/src/control/PageBackgroundChangeController.cpp index df698903..4fcfada6 100644 --- a/src/control/PageBackgroundChangeController.cpp +++ b/src/control/PageBackgroundChangeController.cpp @@ -23,7 +23,7 @@ PageBackgroundChangeController::PageBackgroundChangeController(Control* control) currentPageType->hideCopyPage(); - currentPageType->addApplyBackgroundButton(control->getPageBackgroundChangeController(), true); + currentPageType->addApplyBackgroundButton(this, true); registerListener(control); }