summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdibrow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdibrow.cxx')
-rw-r--r--svx/source/svdraw/svdibrow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx
index 5e0fa262570d..98ac8ee6d9a4 100644
--- a/svx/source/svdraw/svdibrow.cxx
+++ b/svx/source/svdraw/svdibrow.cxx
@@ -370,7 +370,7 @@ sal_uIntPtr _SdrItemBrowserControl::GetCurrentPos() const
{
sal_uIntPtr nRet=CONTAINER_ENTRY_NOTFOUND;
if (GetSelectRowCount()==1) {
- long nPos=((BrowseBox*)this)->FirstSelectedRow();
+ long nPos=static_cast<BrowseBox*>(const_cast<_SdrItemBrowserControl *>(this))->FirstSelectedRow();
if (nPos>=0 && (sal_uIntPtr)nPos<aList.size()) {
nRet=(sal_uIntPtr)nPos;
}