[latexila] Revert "Structure: remove hack due to old Vala bug"



commit 8d5db9dde81edfc979c658eb24ba86aaaef7441a
Author: SÃbastien Wilmet <swilmet src gnome org>
Date:   Sat Jun 23 17:59:44 2012 +0200

    Revert "Structure: remove hack due to old Vala bug"
    
    This reverts commit a9527968f33aa1026c6859680fe593185f772a06.
    
    It seems that the bug is actually not fixed.

 src/document_structure.vala |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/document_structure.vala b/src/document_structure.vala
index c75dd49..9407a66 100644
--- a/src/document_structure.vala
+++ b/src/document_structure.vala
@@ -1069,7 +1069,12 @@ public class DocumentStructure : GLib.Object
             return false;
 
         StructType? markup_type = get_markup_type (markup_name);
-        if (markup_type == null || type != markup_type)
+        if (markup_type == null)
+            return false;
+
+        // HACK see https://bugzilla.gnome.org/show_bug.cgi?id=652781
+        StructType markup_type_hack = markup_type;
+        if ((int) type != (int) markup_type_hack)
             return false;
 
         /* Get the new markup name */



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