[gimp] app: fall back to BG fill if gimp_get_fill_params() doesn't find a pattern
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fall back to BG fill if gimp_get_fill_params() doesn't find a pattern
- Date: Sun, 9 Oct 2016 19:07:58 +0000 (UTC)
commit ce639f031b92683c7eaf6bde09acd0c6239de03c
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 9 21:07:08 2016 +0200
app: fall back to BG fill if gimp_get_fill_params() doesn't find a pattern
app/core/gimp-utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp-utils.c b/app/core/gimp-utils.c
index fc0694d..247fb93 100644
--- a/app/core/gimp-utils.c
+++ b/app/core/gimp-utils.c
@@ -551,6 +551,10 @@ gimp_get_fill_params (GimpContext *context,
{
g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
_("No patterns available for this operation."));
+
+ /* fall back to BG fill */
+ gimp_context_get_background (context, color);
+
return FALSE;
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]