]> matita.cs.unibo.it Git - helm.git/commitdiff
bug fix (helm selection) and new version (sigh)
authorLuca Padovani <luca.padovani@unito.it>
Wed, 29 Aug 2001 20:30:54 +0000 (20:30 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Wed, 29 Aug 2001 20:30:54 +0000 (20:30 +0000)
helm/helmpot/configure.in
helm/helmpot/guiGTK.c

index 606a37f406724b1d328d10c03f010c245fe08d51..58025f81624a30e8ac6433180d12e1959cc8a57d 100644 (file)
@@ -3,7 +3,7 @@ AC_INIT(main.c)
 
 HELMPOT_MAJOR_VERSION=0
 HELMPOT_MINOR_VERSION=0
-HELMPOT_MICRO_VERSION=2
+HELMPOT_MICRO_VERSION=3
 HELMPOT_VERSION=$HELMPOT_MAJOR_VERSION.$HELMPOT_MINOR_VERSION.$HELMPOT_MICRO_VERSION
 VERSION=$HELMPOT_VERSION
 
index fc268ae8a1b34b157fdb4353ce766481946c9ed4..5ca382d91e6a57e70b49488b131cea482a0c9ec4 100644 (file)
@@ -457,6 +457,10 @@ selection_changed(GtkMathView* math_view, mDOMNodeRef node)
 {
   g_return_if_fail(math_view != NULL);
   g_return_if_fail(GTK_IS_MATH_VIEW(math_view));
+
+  while (node != NULL && !mdom_node_has_attribute(node, DOM_CONST_STRING("xref")))
+    node = mdom_node_get_parent(node);
+
   gtk_math_view_set_selection(math_view, node);
 }