[gimp] app: add a little more headroom to the smudge buffer
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add a little more headroom to the smudge buffer
- Date: Wed, 11 Apr 2012 17:08:55 +0000 (UTC)
commit ff6c2807bea09d8e0488658b74ac5d903a9a6bb4
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]