From e4bc8385fb57b2a372ef1a146b2907242fecfae0 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Tue, 30 Aug 2016 01:27:11 +0200 Subject: [PATCH] Fix the StaticScale to correctly request only a single double --- modules/base/scale/staticscale.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/scale/staticscale.cpp b/modules/base/scale/staticscale.cpp index ff1573e61c..ed9fddd71c 100644 --- a/modules/base/scale/staticscale.cpp +++ b/modules/base/scale/staticscale.cpp @@ -33,9 +33,9 @@ namespace openspace { StaticScale::StaticScale(const ghoul::Dictionary& dictionary) : _scaleValue(1.0) { - const bool hasValue = dictionary.hasKeyAndValue(KeyValue); + bool hasValue = dictionary.hasKeyAndValue(KeyValue); if (hasValue) { - dictionary.getValue(KeyValue, _scaleValue); + _scaleValue = dictionary.value(KeyValue); } }