diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-15 11:35:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-15 11:47:56 +0200 |
commit | 313d7125eaf87f7af2af6bc1a6d1bac8fc7b2f0e (patch) | |
tree | 517f6e08a34bc5fda7c7ede5d0083c08a9067ade | |
parent | 94518fb280075e2dbebd7717618ca0f5557a333a (diff) |
convert sal_uIntPtr to long
Change-Id: I662f51d8d7c88a6c6f7306c344d99841a3102bb4
-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; |