From 6c3e7e9e9be34d4d165882c9ebab51ee15128268 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 15 Jul 2016 21:02:54 +0200 Subject: [PATCH] Use dedicated wxRect functions to get rectangle parameters. Minor refactoring to simplify the code. --- src/common/dcbase.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 427955aca2..1c47eb598c 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -400,10 +400,10 @@ void wxDCImpl::DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h) } else { - m_clipX1 = clipRegion.GetLeftTop().x; - m_clipY1 = clipRegion.GetLeftTop().y; - m_clipX2 = clipRegion.GetBottomRight().x + 1; - m_clipY2 = clipRegion.GetBottomRight().y + 1; + m_clipX1 = clipRegion.GetLeft(); + m_clipY1 = clipRegion.GetTop(); + m_clipX2 = clipRegion.GetRight() + 1; + m_clipY2 = clipRegion.GetBottom() + 1; } }