[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - libreofficekit/qa
Miklos Vajna
vmiklos at collabora.co.uk
Mon Jan 19 03:21:08 PST 2015
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit f354149ba04f1c23e68b6e57fe60e42aa88b4641
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Mon Jan 19 12:19:32 2015 +0100
gtktiledviewer: show error message when lok_docview_open_document() fails
Change-Id: Ie2e9bffbeceb1cb0d0b241f3b76d4198cf2e4d85
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index c24755b..085e3e3 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -333,7 +333,8 @@ int main( int argc, char* argv[] )
pFileName = argv[2];
int bOpened = lok_docview_open_document( LOK_DOCVIEW(pDocView), argv[2] );
- assert( bOpened ); (void)bOpened;
+ if (!bOpened)
+ g_error("main: lok_docview_open_document() failed with '%s'", pOffice->pClass->getError(pOffice));
assert( LOK_DOCVIEW(pDocView)->pDocument );
// GtkComboBox requires gtk 2.24 or later
More information about the Libreoffice-commits
mailing list