[gimp] plug-ins: fix a datasourcetype does not shown in metadata-editor.



commit 3c92b5e00bc351c5237f62fc73982312f47ec154
Author: ONO Yoshio <ohtsuka yoshio gmail com>
Date:   Tue Oct 2 08:43:56 2018 +0900

    plug-ins: fix a datasourcetype does not shown in metadata-editor.
    
    Tag of DigitalSourceType has 5 entries, but the combobox shown
    only 4 items.

 plug-ins/metadata/metadata-editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/metadata/metadata-editor.c b/plug-ins/metadata/metadata-editor.c
index 77968557cb..b6c0cb0e1c 100644
--- a/plug-ins/metadata/metadata-editor.c
+++ b/plug-ins/metadata/metadata-editor.c
@@ -1663,7 +1663,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
   gtk_widget_set_size_request (combo_widget, 180, height);
 
   combo_widget = builder_get_widget (builder, "Xmp.iptcExt.DigitalSourceType");
-  for (i = 0; i < 4; i++)
+  for (i = 0; i < 5; i++)
     {
       gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_widget),
                                       gettext (digitalsourcetype[i].display));
@@ -2997,7 +2997,7 @@ metadata_dialog_editor_set_metadata (GExiv2Metadata *metadata,
                 {
                   gint loop;
 
-                  for (loop = 0; loop < 4; loop++)
+                  for (loop = 0; loop < 5; loop++)
                     {
                       if (! strcmp (digitalsourcetype[loop].data, value))
                         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]