[evolution/wip/mcrha/webkit-jsc-api] e-selection.js: Fix a typo, when restoring selection
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/webkit-jsc-api] e-selection.js: Fix a typo, when restoring selection
- Date: Tue, 22 Oct 2019 12:07:50 +0000 (UTC)
commit 04ad1b73759851a24c57e696e39c7a1e2a446f82
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 22 14:08:13 2019 +0200
e-selection.js: Fix a typo, when restoring selection
data/webkit/e-selection.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/webkit/e-selection.js b/data/webkit/e-selection.js
index e099ec28cb..80c7b5c5d6 100644
--- a/data/webkit/e-selection.js
+++ b/data/webkit/e-selection.js
@@ -144,7 +144,7 @@ EvoSelection.Restore = function(doc, selection)
}
base_node = EvoSelection.GetTextOffsetNode(base_node, base_offset);
- base_offset -= EvoSelection.GetOverallTextOffset(extent_node);
+ base_offset -= EvoSelection.GetOverallTextOffset(base_node);
extent_node = EvoSelection.FindElementByPath(doc.body, selection["extentElem"]);
extent_offset = selection["extentOffset"];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]