[gimp/metadata-browser] app: add a little more headroom to the smudge buffer
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: add a little more headroom to the smudge buffer
- Date: Wed, 12 Sep 2012 23:03:45 +0000 (UTC)
commit cccae8140e15c8630664761d55fa284d4f3df967
Author: Nils Philippsen <nils redhat com>
Date: Wed Apr 11 19:04:58 2012 +0200
app: add a little more headroom to the smudge buffer
This fixes crashes when smudging with sizes <= 1.4, filed against Fedora
(rhbz#810850).
app/paint/gimpsmudge.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/paint/gimpsmudge.c b/app/paint/gimpsmudge.c
index fd58888..b9b9253 100644
--- a/app/paint/gimpsmudge.c
+++ b/app/paint/gimpsmudge.c
@@ -376,6 +376,7 @@ gimp_smudge_accumulator_size (GimpPaintOptions *paint_options,
gint *accumulator_size)
{
- /* Note: the max brush mask size plus a border of 1 pixel */
- *accumulator_size = ceil (sqrt (2 * SQR(paint_options->brush_size)) + 2);
+ /* Note: the max brush mask size plus a border of 1 pixel and a little
+ * headroom */
+ *accumulator_size = ceil (sqrt (2 * SQR (paint_options->brush_size + 1)) + 2);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]