]> git.lyx.org Git - features.git/commit
* fix a memory corruption due to sligtly different semantics of btree iterators:
authorStefan Schimanski <sts@lyx.org>
Thu, 28 Feb 2008 14:46:47 +0000 (14:46 +0000)
committerStefan Schimanski <sts@lyx.org>
Thu, 28 Feb 2008 14:46:47 +0000 (14:46 +0000)
commit5d0e49d4dcd5666feeddc5b9d5fa14dd4b654219
tree437f19a87e246d488e2e2a0d61e821460c839e32
parent154907af383c9b3a0dc46bb8d32fdd148bcb0bd2
* fix a memory corruption due to sligtly different semantics of btree iterators:

       // We use the key() method here, and not something like it->first
       // because the btree only returns (iterator-) temporary value pairs.
       // If we returned the first component of those here, we get an
       // invalid reference and therefore strange crashes.
       return it.key();

* This should fix the completion for Windows users hopefully.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23321 a592a061-630c-0410-9148-cb99ea01b6c8
src/WordList.cpp
src/frontends/qt4/GuiCompleter.cpp