diff options
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index a96e1e3f8f6c..c58899384497 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -136,7 +136,8 @@ void populatePartSelector( GtkComboBoxText* pSelector, LOKDocView* pView ) gtk_combo_box_text_append_text( pSelector, sText ); } - gtk_combo_box_set_active( GTK_COMBO_BOX(pSelector), 0 ); + gtk_combo_box_set_active( GTK_COMBO_BOX(pPartSelector), + lok_docview_get_part( LOK_DOCVIEW(pDocView) ) ); } void changePart( GtkWidget* pSelector, gpointer /* pItem */ ) |