From ea12fd7a597d4dc0707bf7e16e5c9fdb65f6aae5 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Fri, 9 Nov 2018 01:28:21 +0100 Subject: Adding minor fixes --- src/display/sp-canvas.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/display/sp-canvas.cpp') diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp index 927d7c9cd..4b11fe707 100644 --- a/src/display/sp-canvas.cpp +++ b/src/display/sp-canvas.cpp @@ -1948,15 +1948,15 @@ int SPCanvas::paint() SPCanvasArena *arena = nullptr; bool split = false; bool inverse = prefs->getBool("/window/splitcanvas/inverse", false); + bool vertical = prefs->getBool("/window/splitcanvas/vertical", true); double split_x = 1; double split_y = 1; - double split_width = 1; - double split_height = 1; if (desktop && desktop->splitMode()) { + double value = split_x = prefs->getDoubleLimited("/window/splitcanvas/value", 0.5, 0, 1); split = desktop->splitMode(); arena = SP_CANVAS_ARENA (desktop->drawing); - split_x = prefs->getDoubleLimited("/window/splitcanvas/x", 0.5, 0, 1); - split_y = prefs->getDoubleLimited("/window/splitcanvas/y", 1 , 0, 1); + split_x = !vertical ? 1 : value; + split_y = vertical ? 1 : value; } GtkAllocation allocation; gtk_widget_get_allocation(GTK_WIDGET(this), &allocation); -- cgit v1.2.3