[SCM] calf/master: + GUI: nasty hack to make labels less likely to be truncated
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:38:40 UTC 2013
The following commit has been merged in the master branch:
commit ec5312b84d2afda431914175822453aca75d776c
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Wed Nov 26 22:23:05 2008 +0000
+ GUI: nasty hack to make labels less likely to be truncated
diff --git a/src/giface.cpp b/src/giface.cpp
index 8079f3e..2046b88 100644
--- a/src/giface.cpp
+++ b/src/giface.cpp
@@ -131,7 +131,7 @@ int parameter_properties::get_char_count() const
len = std::max(len, strlen(buf)) + 2;
return (int)len;
}
- return std::max(to_string(min).length(), std::max(to_string(max).length(), to_string(max * 0.999999).length()));
+ return std::max(to_string(min).length(), std::max(to_string(max).length(), to_string(min + (max-min) * 0.987654).length()));
}
std::string parameter_properties::to_string(float value) const
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list