gtktiledviewer: don't crash on unimplemented tracked change list

As it's currently implemented only for Writer.

Change-Id: I8c281b2294564472f2c2c5b7de5dd3f86a11a94a
This commit is contained in:
Miklos Vajna
2016-08-30 15:15:42 +02:00
parent c9493b344a
commit 30b84816eb

View File

@@ -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());