summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-08-30 15:15:42 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-08-30 15:15:42 +0200
commit30b84816eb5c6cd44bdee459cac1bb9f90859aec (patch)
tree89a93569a48c7302152f04d0525861aa7c84e203 /libreofficekit
parentc9493b344a9bd104d0a882f5e9407880c0c63c20 (diff)
gtktiledviewer: don't crash on unimplemented tracked change list
As it's currently implemented only for Writer. Change-Id: I8c281b2294564472f2c2c5b7de5dd3f86a11a94a
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
index e1e86bb4da3c..97b3350f34aa 100644
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
@@ -462,6 +462,9 @@ static void documentRedline(GtkWidget* pButton, gpointer /*pItem*/)
// Get the data.
LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(pDocView);
char* pValues = pDocument->pClass->getCommandValues(pDocument, ".uno:AcceptTrackedChanges");
+ if (!pValues)
+ return;
+
std::stringstream aInfo;
aInfo << "lok::Document::getCommandValues('.uno:AcceptTrackedChanges') returned '" << pValues << "'" << std::endl;
g_info("%s", aInfo.str().c_str());