From 5e90f544e1c57b4a43237d4e3b63f04cfc2adae6 Mon Sep 17 00:00:00 2001 From: Andreas Butti Date: Sat, 23 Feb 2019 18:00:24 +0100 Subject: [PATCH] Fixed build --- src/gui/dialog/SelectBackgroundColorDialog.h | 2 +- src/undo/EraseUndoAction.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/dialog/SelectBackgroundColorDialog.h b/src/gui/dialog/SelectBackgroundColorDialog.h index f9554b52..88c9f60f 100644 --- a/src/gui/dialog/SelectBackgroundColorDialog.h +++ b/src/gui/dialog/SelectBackgroundColorDialog.h @@ -49,7 +49,7 @@ private: /** * Last used background colors (stored in settings) */ - GdkRGBA lastBackgroundColors[LAST_BACKGROUND_COLOR_COUNT] = { 0 }; + GdkRGBA lastBackgroundColors[LAST_BACKGROUND_COLOR_COUNT]; /** * Selected color diff --git a/src/undo/EraseUndoAction.cpp b/src/undo/EraseUndoAction.cpp index 8cf29f56..42ef9c8c 100644 --- a/src/undo/EraseUndoAction.cpp +++ b/src/undo/EraseUndoAction.cpp @@ -10,10 +10,11 @@ #include EraseUndoAction::EraseUndoAction(PageRef page) - : UndoAction("EraseUndoAction"), - page(page) + : UndoAction("EraseUndoAction") { XOJ_INIT_TYPE(EraseUndoAction); + + this->page = page; } EraseUndoAction::~EraseUndoAction()