diff options
-rw-r--r-- | libdocument/ev-document.c | 6 | ||||
-rw-r--r-- | properties/ev-properties-view.c | 17 |
2 files changed, 3 insertions, 20 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index b3a6c62a..e7f59ded 100644 --- a/libdocument/ev-document.c +++ b/libdocument/ev-document.c @@ -821,11 +821,7 @@ ev_document_info_free (EvDocumentInfo *info) g_free (info->keywords); g_free (info->creator); g_free (info->producer); - - if (info->linearized != 0 && info->linearized != 1) - { - g_free(info->linearized); - } + g_free (info->linearized); g_free (info->security); ev_document_license_free (info->license); diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index f4fab251..2209c8ba 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -360,21 +360,8 @@ ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo set_property (properties, GTK_GRID (grid), N_PAGES_PROPERTY, text, &row); g_free (text); } - if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED) - { - /* nice hack bro */ - if (info->linearized == 1) - { - set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, _("Yes"), &row); - } - else if (info->linearized == 0) - { - set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, _("No"), &row); - } - else - { - set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, info->linearized, &row); - } + if (info->fields_mask & EV_DOCUMENT_INFO_LINEARIZED) { + set_property (properties, GTK_GRID (grid), LINEARIZED_PROPERTY, info->linearized, &row); } if (info->fields_mask & EV_DOCUMENT_INFO_SECURITY) { set_property (properties, GTK_GRID (grid), SECURITY_PROPERTY, info->security, &row); |