Blame SOURCES/0063-gtktiledviewer-Don-t-continue-on-widget-init-failure.patch

135360
From 2b0fe3b8c3f7d6de3fe2ca63f0d595d5891d36a4 Mon Sep 17 00:00:00 2001
135360
From: Pranav Kant <pranavk@gnome.org>
135360
Date: Mon, 29 Jun 2015 13:34:24 +0530
135360
Subject: [PATCH 063/398] gtktiledviewer: Don't continue on widget init failure
135360
135360
Change-Id: I5916357903fad5878d29bc31f21af45816a45ec5
135360
(cherry picked from commit a482d3289fa7e3789a306970ea76d074527c3579)
135360
---
135360
 libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 4 ++--
135360
 1 file changed, 2 insertions(+), 2 deletions(-)
135360
135360
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
135360
index 7510ca53a928..131fb5bb2d33 100644
135360
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
135360
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
135360
@@ -519,8 +519,8 @@ int main( int argc, char* argv[] )
135360
 
135360
     // Docview
135360
     pDocView = lok_doc_view_new (argv[1], NULL, NULL);
135360
-    if (pDocView == NULL)
135360
-        g_error ("Error while creating LOKDocView widget");
135360
+    g_assert_nonnull(pDocView);
135360
+
135360
     g_signal_connect(pDocView, "edit-changed", G_CALLBACK(signalEdit), NULL);
135360
     g_signal_connect(pDocView, "command-changed", G_CALLBACK(signalCommand), NULL);
135360
     g_signal_connect(pDocView, "search-not-found", G_CALLBACK(signalSearch), NULL);
135360
-- 
135360
2.12.0
135360