aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-07-07 08:28:05 -0400
committerKen Moore <moorekou@gmail.com>2016-07-07 08:28:05 -0400
commitc6063089d22dfdeededaadbbb58c45c398167226 (patch)
tree2cec8e9b14f1665caa0f6c04cd470fddee486baf /src-qt5
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-c6063089d22dfdeededaadbbb58c45c398167226.tar.gz
lumina-c6063089d22dfdeededaadbbb58c45c398167226.tar.bz2
lumina-c6063089d22dfdeededaadbbb58c45c398167226.zip
Fix up the loading of non-integer values for the panel height.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LPanel.cpp b/src-qt5/core/lumina-desktop/LPanel.cpp
index 55ec5469..8c87fa70 100644
--- a/src-qt5/core/lumina-desktop/LPanel.cpp
+++ b/src-qt5/core/lumina-desktop/LPanel.cpp
@@ -112,7 +112,7 @@ void LPanel::UpdatePanel(bool geomonly){
layout->setAlignment(Qt::AlignTop);
layout->setDirection(QBoxLayout::TopToBottom);
}
- int ht = settings->value(PPREFIX+"height", 30).toInt(); //this is technically the distance into the screen from the edge
+ int ht = qRound(settings->value(PPREFIX+"height", 30).toDouble()); //this is technically the distance into the screen from the edge
if(ht<=1){ ht = 30; } //some kind of error in the saved height - use the default value
int hidesize = qRound(ht*0.01); //use 1% of the panel size
if(hidesize<2){ hidesize=2; } //minimum of 2 pixels (need space for the mouse to go over it)
bgstack15