diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-19 18:31:20 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-20 13:39:43 +0530 |
commit | 6b4103984f31b42c791800925328dda00f17f122 (patch) | |
tree | c00a8ed3365145d0f77a4e74a3f2a18e2a1bfd5e /libreofficekit/qa | |
parent | fbb171357048dc5ef52faec118327e68d423fa91 (diff) |
gtktiledviewer: enable comment sidebar for all doctypes
Impress was the only doctype remaining which didn't have comments api
yet, but now it does
Change-Id: I4e287301e879dff1c29c26880305505466ceaba4
Diffstat (limited to 'libreofficekit/qa')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index 3115fd43a1cd..1996368f5e4a 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -1132,9 +1132,7 @@ static void initWindow(TiledWindow& rWindow) g_object_get(G_OBJECT(rWindow.m_pDocView), "tiled-annotations", &bTiledAnnotations, nullptr); // comments api implemented only for writer, calc as of now - if (!bTiledAnnotations && pDocument && - (pDocument->pClass->getDocumentType(pDocument) == LOK_DOCTYPE_TEXT || - pDocument->pClass->getDocumentType(pDocument) == LOK_DOCTYPE_SPREADSHEET)) + if (!bTiledAnnotations && pDocument) { if (!rWindow.m_pCommentsSidebar) { |