mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
16c9db03cd
commit
89aacc6de5
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user