]> git.lyx.org Git - features.git/commit
Fix assertion when checking if change in selection
authorScott Kostyshak <skostysh@lyx.org>
Fri, 28 Dec 2018 15:40:38 +0000 (10:40 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 29 Dec 2018 04:56:53 +0000 (23:56 -0500)
commit4ea6d81437ec7b5bea165d78ca37cb163e262042
tree23c6f48dd261996839a0c7dc9eef8a5fc5ffe406
parentb286511b75b337fe50fe71493cf5b5aac13ebccb
Fix assertion when checking if change in selection

The check for the iterator being in the same paragraph as the end of
selection was incorrect, because paragraphs in different cells could
have the same pit. We now additionally condition on having the same
idx.

This commit amends d1279875 (and thus 23de5e5e).

For discussion, see:

  https://www.mail-archive.com/search?l=mid&q=a5afd0c01a0eb9a84fd4d050d15eb23016d6f38a.camel%40lyx.org

Thanks to Jürgen.

(cherry picked from commit c5301a6495b108df5b307da39dad5be65926f76b)
src/Text3.cpp