[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Feb 6 11:52:37 PST 2012
sc/source/ui/optdlg/tpcompatibility.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fa0739498518f715552438775c0a51b0fd3b7263
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Mon Feb 6 14:52:38 2012 -0500
Use the new method.
diff --git a/sc/source/ui/optdlg/tpcompatibility.cxx b/sc/source/ui/optdlg/tpcompatibility.cxx
index 3748fb1..f94fa99 100644
--- a/sc/source/ui/optdlg/tpcompatibility.cxx
+++ b/sc/source/ui/optdlg/tpcompatibility.cxx
@@ -69,7 +69,7 @@ sal_Bool ScTpCompatOptions::FillItemSet(SfxItemSet &rCoreAttrs)
void ScTpCompatOptions::Reset(const SfxItemSet &rCoreAttrs)
{
const SfxPoolItem* pItem;
- if (SFX_ITEM_SET == rCoreAttrs.GetItemState(SID_SC_OPT_KEY_BINDING_COMPAT, false, &pItem))
+ if (rCoreAttrs.HasItem(SID_SC_OPT_KEY_BINDING_COMPAT, pItem))
{
const SfxUInt16Item* p16Item = static_cast<const SfxUInt16Item*>(pItem);
ScOptionsUtil::KeyBindingType eKeyB =
More information about the Libreoffice-commits
mailing list