diff options
-rw-r--r-- | include/svx/galctrl.hxx | 2 | ||||
-rw-r--r-- | svx/source/gallery2/galctrl.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/galctrl.hxx b/include/svx/galctrl.hxx index 4abfde111486..d1b6a3939cfc 100644 --- a/include/svx/galctrl.hxx +++ b/include/svx/galctrl.hxx @@ -121,7 +121,7 @@ private: Link maSelectHdl; GalleryTheme* mpTheme; - sal_uIntPtr mnCurRow; + long mnCurRow; void InitSettings(); diff --git a/svx/source/gallery2/galctrl.cxx b/svx/source/gallery2/galctrl.cxx index 4665fd89cbc9..517b3a9094c3 100644 --- a/svx/source/gallery2/galctrl.cxx +++ b/svx/source/gallery2/galctrl.cxx @@ -508,7 +508,7 @@ void GalleryListView::PaintField( OutputDevice& rDev, const Rectangle& rRect, sa rDev.Push( PushFlags::CLIPREGION ); rDev.IntersectClipRegion( rRect ); - if( mpTheme && ( mnCurRow < mpTheme->GetObjectCount() ) ) + if( mpTheme && ( static_cast<size_t>(mnCurRow) < mpTheme->GetObjectCount() ) ) { const Size aSize(rRect.GetHeight(), rRect.GetHeight()); BitmapEx aBitmapEx; |