Merge branch 'develop' into patch-2

This commit is contained in:
qPCR4vir
2019-07-31 16:59:20 +02:00

View File

@@ -96,11 +96,11 @@ namespace nana
{
if (widget_)
{
auto value_px = (widget_->size().width - border_px * 2);
unsigned value_px = (widget_->size().width - border_px * 2);
//avoid overflow
if (unknown_ || (value_ < max_))
value_px = static_cast<unsigned>(value_px * (double(value_) / double(max_)));
value_px = unsigned(double(value_px) * (double(value_) / double(max_)));
if (value_px != value_px_)
{