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:
@@ -462,6 +462,9 @@ static void documentRedline(GtkWidget* pButton, gpointer /*pItem*/)
|
|||||||
// Get the data.
|
// Get the data.
|
||||||
LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(pDocView);
|
LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(pDocView);
|
||||||
char* pValues = pDocument->pClass->getCommandValues(pDocument, ".uno:AcceptTrackedChanges");
|
char* pValues = pDocument->pClass->getCommandValues(pDocument, ".uno:AcceptTrackedChanges");
|
||||||
|
if (!pValues)
|
||||||
|
return;
|
||||||
|
|
||||||
std::stringstream aInfo;
|
std::stringstream aInfo;
|
||||||
aInfo << "lok::Document::getCommandValues('.uno:AcceptTrackedChanges') returned '" << pValues << "'" << std::endl;
|
aInfo << "lok::Document::getCommandValues('.uno:AcceptTrackedChanges') returned '" << pValues << "'" << std::endl;
|
||||||
g_info("%s", aInfo.str().c_str());
|
g_info("%s", aInfo.str().c_str());
|
||||||
|
Reference in New Issue
Block a user