aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2019-04-05 14:06:48 +0200
committerColomban Wendling <ban@herbesfolles.org>2019-04-05 14:06:48 +0200
commit5f23a0f3f64fb575e0aaebe2a309518909db44c8 (patch)
tree82e039de464e9dcfbe66f1a9391de129d62c5ce5 /gtk/ScintillaGTK.cxx
parent1219f761ef3a4bf048819c915f0465c35aeb7920 (diff)
downloadscintilla-mirror-5f23a0f3f64fb575e0aaebe2a309518909db44c8.tar.gz
Bug [#2094]. gtk: Accessible: use the built-in character position cache
It's quite a lot faster even after trying and optimizing the custom version, and it makes the code simpler. Also improve ByteOffsetFromCharacterOffset() to make use of the cache, making it drastically faster.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index c98fde84a..5ee3b865a 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -867,7 +867,7 @@ sptr_t ScintillaGTK::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
if (accessible) {
ScintillaGTKAccessible *sciAccessible = ScintillaGTKAccessible::FromAccessible(accessible);
if (sciAccessible) {
- sciAccessible->SetAccessibility();
+ sciAccessible->SetAccessibility(accessibilityEnabled);
}
}
break;