[Libreoffice-commits] .: sfx2/source
Lubos Lunak
llunak at kemper.freedesktop.org
Fri Jan 14 04:25:59 PST 2011
sfx2/source/dialog/templdlg.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d85c07a0980a7c83cfb9b393a74b1b61fdc57c6c
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Fri Jan 14 13:25:12 2011 +0100
fix out_of_range abort introduced in 7bc30e29
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 691c163..bf68676 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1252,8 +1252,8 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags) // Flags
const SfxStyleFamily eFam = pItem->GetFamily();
- SfxFilterTupel *pT = pItem->GetFilterList().at(nActFilter);
- USHORT nFilter = pT ? pItem->GetFilterList().at(nActFilter)->nFlags : 0;
+ SfxFilterTupel *pT = ( nActFilter < pItem->GetFilterList().size() ? pItem->GetFilterList().at(nActFilter) : NULL );
+ USHORT nFilter = pT ? pT->nFlags : 0;
if(!nFilter) // automatisch
nFilter = nAppFilter;
More information about the Libreoffice-commits
mailing list