summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/colorpicker.cxx2
-rw-r--r--cui/source/tabpages/tppattern.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 687e44677825..6492ad558a3e 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -447,7 +447,7 @@ void ColorFieldControl::ShowPosition( const Point& rPos, bool bUpdate )
if (pReadAccess != nullptr)
{
// mpBitmap always has a bit count of 24 => use of GetPixel(...) is safe
- maColor = pReadAccess->GetPixel(nY, nX);
+ maColor = pReadAccess->GetPixel(nY, nX).GetColor();
Bitmap::ReleaseAccess(pReadAccess);
pReadAccess = nullptr;
}
diff --git a/cui/source/tabpages/tppattern.cxx b/cui/source/tabpages/tppattern.cxx
index 5422e9c0334f..141bd052cc66 100644
--- a/cui/source/tabpages/tppattern.cxx
+++ b/cui/source/tabpages/tppattern.cxx
@@ -313,8 +313,8 @@ IMPL_LINK_NOARG(SvxPatternTabPage, ChangePatternHdl_Impl, ValueSet*, void)
m_pCtlPixel->SetXBitmap(pGraphicObject->GetGraphic().GetBitmapEx());
- Color aPixelColor = aFront;
- Color aBackColor = aBack;
+ Color aPixelColor = aFront.GetColor();
+ Color aBackColor = aBack.GetColor();
m_pLbColor->SelectEntry( aPixelColor );
m_pLbBackgroundColor->SelectEntry( aBackColor );