File 0001-Honor-stage-color-in-PDF-output.patch of Package pinpoint

From d9348cdc381801a7afc438c789a8266dfbaebe57 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Wed, 25 Apr 2012 14:37:44 +0200
Subject: [PATCH] Honor stage-color in PDF output

---
 pp-cairo.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pp-cairo.c b/pp-cairo.c
index 5ee7f21..35730c2 100644
--- a/pp-cairo.c
+++ b/pp-cairo.c
@@ -290,7 +290,7 @@ _cairo_render_background (CairoRenderer *renderer,
   char       *full_path = NULL;
   const char *file;
 
-  if (point == NULL || point->bg == NULL)
+  if (point == NULL || (point->bg == NULL && point->stage_color == NULL))
     return;
 
   file = point->bg;
@@ -433,7 +433,7 @@ _cairo_render_background (CairoRenderer *renderer,
       /* silently ignore camera backgrounds */
       break;
     default:
-      g_assert_not_reached();
+      break;
     }
 
   g_free (full_path);
-- 
1.7.10.4
openSUSE Build Service is sponsored by