aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-disk-utility/exp2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnome-disk-utility/exp2.patch')
-rw-r--r--community/gnome-disk-utility/exp2.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/gnome-disk-utility/exp2.patch b/community/gnome-disk-utility/exp2.patch
new file mode 100644
index 0000000000..66e8ce45e8
--- /dev/null
+++ b/community/gnome-disk-utility/exp2.patch
@@ -0,0 +1,13 @@
+diff --git a/src/gdu-gtk/gdu-size-widget.c b/src/gdu-gtk/gdu-size-widget.c
+index 4dd6a8f..715ddad 100644
+--- a/src/gdu-gtk/gdu-size-widget.c
++++ b/src/gdu-gtk/gdu-size-widget.c
+@@ -564,7 +564,7 @@ update_stepping (GduSizeWidget *widget)
+
+ shown_extent = extent / unit_factor;
+
+- increment = (exp10 (floor (log10 (shown_extent))) / 10.0) * unit_factor;
++ increment = (exp (M_LN10 * floor (log10 (shown_extent))) / 10.0) * unit_factor;
+
+ gtk_range_set_increments (GTK_RANGE (widget->priv->hscale),
+ increment,