summaryrefslogtreecommitdiff
path: root/vcl/source/bitmap/BitmapMedianFilter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/bitmap/BitmapMedianFilter.cxx')
-rw-r--r--vcl/source/bitmap/BitmapMedianFilter.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/source/bitmap/BitmapMedianFilter.cxx b/vcl/source/bitmap/BitmapMedianFilter.cxx
index 81b935ac5212..47a298dd6039 100644
--- a/vcl/source/bitmap/BitmapMedianFilter.cxx
+++ b/vcl/source/bitmap/BitmapMedianFilter.cxx
@@ -114,7 +114,8 @@ BitmapEx BitmapMedianFilter::execute(BitmapEx const& rBitmapEx) const
Scanline pScanline = pWriteAcc->GetScanline(nY);
for (nX = 0; nX < nWidth; nX++)
{
- nR1 = (pColor = pRowTmp1 + nX)->GetRed();
+ pColor = pRowTmp1 + nX;
+ nR1 = pColor->GetRed();
nG1 = pColor->GetGreen();
nB1 = pColor->GetBlue();
nR2 = (++pColor)->GetRed();
@@ -124,7 +125,8 @@ BitmapEx BitmapMedianFilter::execute(BitmapEx const& rBitmapEx) const
nG3 = pColor->GetGreen();
nB3 = pColor->GetBlue();
- nR4 = (pColor = pRowTmp2 + nX)->GetRed();
+ pColor = pRowTmp2 + nX;
+ nR4 = pColor->GetRed();
nG4 = pColor->GetGreen();
nB4 = pColor->GetBlue();
nR5 = (++pColor)->GetRed();
@@ -134,7 +136,8 @@ BitmapEx BitmapMedianFilter::execute(BitmapEx const& rBitmapEx) const
nG6 = pColor->GetGreen();
nB6 = pColor->GetBlue();
- nR7 = (pColor = pRowTmp3 + nX)->GetRed();
+ pColor = pRowTmp3 + nX;
+ nR7 = pColor->GetRed();
nG7 = pColor->GetGreen();
nB7 = pColor->GetBlue();
nR8 = (++pColor)->GetRed();