remove dangerous caching (bug 1050)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@7105 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2003-06-04 14:31:13 +00:00
parent 16c9db03cd
commit 89aacc6de5
3 changed files with 6 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2003-05-28 Lars Gullik Bjønnes <larsbj@lyx.org>
* lyxtextclass.C (operator): remove caching (bug 1050)
2003-06-03 John Levon <levon@movementarian.org>
* ispell.C: HPUX build fix from Albert Chin

View File

@ -740,12 +740,6 @@ LyXLayout_ptr const & LyXTextClass::operator[](string const & n) const
string const name = (n.empty() ? defaultLayoutName() : n);
static string lastLayoutName;
static LayoutList::difference_type lastLayoutIndex;
if (name == lastLayoutName)
return layoutlist_[lastLayoutIndex];
LayoutList::const_iterator cit =
find_if(layoutlist_.begin(),
layoutlist_.end(),
@ -760,9 +754,6 @@ LyXLayout_ptr const & LyXTextClass::operator[](string const & n) const
lyx::Assert(false);
}
lastLayoutName = name;
lastLayoutIndex = std::distance(layoutlist_.begin(), cit);
return (*cit);
}

View File

@ -25,6 +25,8 @@ What's new
** Bug fixes
- fix possible crash when changing text class [bug #1050]
- work around a Qt 3.1.2 bug with the environment combo box [bug #1136]
- fix bug where browsing for files in graphics inset would always