We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6549cbb commit d820deaCopy full SHA for d820dea
src/deluge/gui/menu_item/patch_cables.cpp
@@ -80,7 +80,10 @@ void PatchCables::renderOptions() {
80
int32_t param_value = cable->param.getCurrentValue();
81
int32_t level = ((int64_t)param_value * kMaxMenuPatchCableValue + (1 << 29)) >> 30;
82
83
- floatToString((float)level / 100, buf + off + 5, 2, 2);
+ float floatLevel = (float)level / 100;
84
+ int floatoff = floatLevel < 0 ? 1 : 0;
85
+
86
+ floatToString(floatLevel, buf + off + 5 - floatoff, 2, 2);
87
// fmt::vformat_to_n(buf + off + 5, 5, "{:4}", fmt::make_format_args();
88
89
buf[off + 9] = ' ';
0 commit comments