[SCM] Render HTML and CSS content with tk branch, debian, updated. e68fcaac016a9e83434726cde652570a865cdff0

Ole Streicher debian at liska.ath.cx
Wed Feb 22 18:10:09 UTC 2012


The following commit has been merged in the debian branch:
commit 22ebcecee04f5cda0666d7e6deef14fe887b873c
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed Feb 22 18:55:08 2012 +0100

    cut&paster fix

diff --git a/debian/patches/fix_empty_offset.patch b/debian/patches/fix_empty_offset.patch
index bb80296..7cefdea 100644
--- a/debian/patches/fix_empty_offset.patch
+++ b/debian/patches/fix_empty_offset.patch
@@ -12,8 +12,7 @@ Description: The problem is that the get_selection method doesn't account for
    #
 -  #     This command is invoked whenever the current selection is selected
 +  #     This command is invoked whenever the current selection is requested
-   #     while it is owned by the html widget. The text of the
-selected
+   #     while it is owned by the html widget. The text of the selected
    #     region is returned.
    #
    proc get_selection {me offset maxChars} {
@@ -22,10 +21,8 @@ selected
      set n2 $O(myToNode)
      set i2 $O(myToIdx)
 
-     set stridx_a [$O(myHv3) html text offset $O(myFromNode)
-$O(myFromIdx)]
-     set stridx_b [$O(myHv3) html text offset $O(myToNode)
-$O(myToIdx)]
+     set stridx_a [$O(myHv3) html text offset $O(myFromNode) $O(myFromIdx)]
+     set stridx_b [$O(myHv3) html text offset $O(myToNode) $O(myToIdx)]
 +    if {$stridx_a eq "" || $stridx_b eq ""} {
 +      return ""
 +    }

-- 
Render HTML and CSS content with tk



More information about the debian-science-commits mailing list