summaryrefslogtreecommitdiff
path: root/framework/source/services/tabwindowservice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/services/tabwindowservice.cxx')
-rw-r--r--framework/source/services/tabwindowservice.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx
index 2eb46a0810..6c78600aa9 100644
--- a/framework/source/services/tabwindowservice.cxx
+++ b/framework/source/services/tabwindowservice.cxx
@@ -154,7 +154,7 @@ TabWindowService::~TabWindowService()
ResetableGuard aGuard( m_aLock );
::sal_Int32 nID = m_nPageIndexCounter++;
- TTabPageInfo aInfo(m_nPageIndexCounter);
+ TTabPageInfo aInfo(nID);
m_lTabPageInfos[nID] = aInfo;
@@ -357,10 +357,7 @@ css::uno::Any SAL_CALL TabWindowService::impl_getPropertyValue(const ::rtl::OUSt
//*****************************************************************************************************************
IMPL_LINK( TabWindowService, EventListener, VclSimpleEvent*, pEvent )
{
- if (
- ( ! pEvent ) ||
- ( pEvent->ISA(VclWindowEvent) )
- )
+ if ( !pEvent && !pEvent->ISA(VclWindowEvent))
return 0;
ULONG nEventId = pEvent->GetId();