[gtranslator] Small fix to TM shortcuts



commit 8fc76cde9f97a5d077985814a676d3bfcab81dd0
Author: Daniel Mustieles <daniel mustieles gmail com>
Date:   Sun Apr 1 13:31:52 2012 +0200

    Small fix to TM shortcuts

 .../translation-memory/gtr-translation-memory-ui.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/translation-memory/gtr-translation-memory-ui.c b/plugins/translation-memory/gtr-translation-memory-ui.c
index 4ae9988..c58c172 100644
--- a/plugins/translation-memory/gtr-translation-memory-ui.c
+++ b/plugins/translation-memory/gtr-translation-memory-ui.c
@@ -195,7 +195,7 @@ showed_message_cb (GtrTab *tab, GtrMsg *msg, GtrTranslationMemoryUi *tm_ui)
                           -1);
       i++;
       k++;
-      if (k == MAX_ELEMENTS)
+      if (k == MAX_ELEMENTS - 1)
         break;
     }
 



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