summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviews5.cxx')
-rw-r--r--sd/source/ui/view/drviews5.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx
index 13c5807082f7..d1d604e43ad0 100644
--- a/sd/source/ui/view/drviews5.cxx
+++ b/sd/source/ui/view/drviews5.cxx
@@ -573,8 +573,8 @@ void DrawViewShell::SetActiveTabLayerIndex (int nIndex)
if (nIndex>=0 && nIndex<pBar->GetPageCount())
{
// Tell the draw view and the tab control of the new active layer.
- mpDrawView->SetActiveLayer (pBar->GetPageText (pBar->GetPageId ((sal_uInt16)nIndex)));
- pBar->SetCurPageId (pBar->GetPageId ((sal_uInt16)nIndex));
+ mpDrawView->SetActiveLayer (pBar->GetPageText (pBar->GetPageId (static_cast<sal_uInt16>(nIndex))));
+ pBar->SetCurPageId (pBar->GetPageId (static_cast<sal_uInt16>(nIndex)));
rtl::Reference<SdUnoDrawView> pUnoDrawView(new SdUnoDrawView (
*this,
*GetView()));