summaryrefslogtreecommitdiff
path: root/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/source/standard/vclxaccessibletabpagewindow.cxx')
-rw-r--r--accessibility/source/standard/vclxaccessibletabpagewindow.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/accessibility/source/standard/vclxaccessibletabpagewindow.cxx b/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
index 30dc29b34213..dea12aed6fb0 100644
--- a/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpagewindow.cxx
@@ -18,6 +18,7 @@
*/
#include <standard/vclxaccessibletabpagewindow.hxx>
+#include <comphelper/accessiblecontexthelper.hxx>
#include <toolkit/helper/convert.hxx>
#include <vcl/tabctrl.hxx>
#include <vcl/tabpage.hxx>
@@ -34,7 +35,7 @@ using namespace ::comphelper;
VCLXAccessibleTabPageWindow::VCLXAccessibleTabPageWindow( VCLXWindow* pVCLXWindow )
:VCLXAccessibleComponent( pVCLXWindow )
{
- m_pTabPage = static_cast< TabPage* >( GetWindow().get() );
+ m_pTabPage = GetAs<TabPage>();
m_pTabControl = nullptr;
m_nPageId = 0;
if ( !m_pTabPage )
@@ -122,7 +123,7 @@ Reference< XAccessible > VCLXAccessibleTabPageWindow::getAccessibleParent( )
}
-sal_Int32 VCLXAccessibleTabPageWindow::getAccessibleIndexInParent( )
+sal_Int64 VCLXAccessibleTabPageWindow::getAccessibleIndexInParent( )
{
OExternalLockGuard aGuard( this );