[Libreoffice-commits] core.git: sw/inc sw/source
Julien Nabet
serval2412 at yahoo.fr
Sun Nov 19 22:30:33 UTC 2017
sw/inc/swrect.hxx | 4 ++--
sw/source/core/bastyp/swrect.cxx | 4 ++--
sw/source/core/layout/newfrm.cxx | 20 ++++++++++----------
sw/source/core/layout/paintfrm.cxx | 10 +++++-----
4 files changed, 19 insertions(+), 19 deletions(-)
New commits:
commit c60c525902028b6c7da2dbb2ec17b08aaeaead27
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Nov 19 22:38:51 2017 +0100
Typo "Rigth_" -> "Right_"
Change-Id: Ibe981b178f8282ebf481411c7b2b3473b72cb69b
Reviewed-on: https://gerrit.libreoffice.org/44934
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index 18bd97149e30..924e4adc2ebd 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -108,13 +108,13 @@ public:
void Top_( const long nTop );
void Bottom_( const long nBottom );
void Left_( const long nLeft );
- void Rigth_( const long nRight );
+ void Right_( const long nRight );
void Width_( const long nNew );
void Height_( const long nNew );
long Top_() const;
long Bottom_() const;
long Left_() const;
- long Rigth_() const;
+ long Right_() const;
long Width_() const;
long Height_() const;
void SubTop( const long nSub );
diff --git a/sw/source/core/bastyp/swrect.cxx b/sw/source/core/bastyp/swrect.cxx
index 40ab1badff70..dab5547f6c3f 100644
--- a/sw/source/core/bastyp/swrect.cxx
+++ b/sw/source/core/bastyp/swrect.cxx
@@ -153,14 +153,14 @@ void SwRect::Justify()
void SwRect::Width_( const long nNew ) { m_Size.setWidth(nNew); }
void SwRect::Height_( const long nNew ) { m_Size.setHeight(nNew); }
void SwRect::Left_( const long nLeft ){ m_Size.Width() += m_Point.getX() - nLeft; m_Point.setX(nLeft); }
-void SwRect::Rigth_( const long nRight ){ m_Size.setWidth(nRight - m_Point.getX()); }
+void SwRect::Right_( const long nRight ){ m_Size.setWidth(nRight - m_Point.getX()); }
void SwRect::Top_( const long nTop ){ m_Size.Height() += m_Point.getY() - nTop; m_Point.setY(nTop); }
void SwRect::Bottom_( const long nBottom ){ m_Size.setHeight(nBottom - m_Point.getY()); }
long SwRect::Width_() const{ return m_Size.getWidth(); }
long SwRect::Height_() const{ return m_Size.getHeight(); }
long SwRect::Left_() const{ return m_Point.getX(); }
-long SwRect::Rigth_() const{ return m_Point.getX() + m_Size.getWidth(); }
+long SwRect::Right_() const{ return m_Point.getX() + m_Size.getWidth(); }
long SwRect::Top_() const{ return m_Point.getY(); }
long SwRect::Bottom_() const{ return m_Point.getY() + m_Size.getHeight(); }
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx
index f653ee04cc62..9adafe9ee72a 100644
--- a/sw/source/core/layout/newfrm.cxx
+++ b/sw/source/core/layout/newfrm.cxx
@@ -61,7 +61,7 @@ static SwRectFnCollection aHorizontal = {
/*.fnGetTop =*/&SwRect::Top_,
/*.fnGetBottom =*/&SwRect::Bottom_,
/*.fnGetLeft =*/&SwRect::Left_,
- /*.fnGetRight =*/&SwRect::Rigth_,
+ /*.fnGetRight =*/&SwRect::Right_,
/*.fnGetWidth =*/&SwRect::Width_,
/*.fnGetHeight =*/&SwRect::Height_,
/*.fnGetPos =*/&SwRect::TopLeft,
@@ -70,7 +70,7 @@ static SwRectFnCollection aHorizontal = {
/*.fnSetTop =*/&SwRect::Top_,
/*.fnSetBottom =*/&SwRect::Bottom_,
/*.fnSetLeft =*/&SwRect::Left_,
- /*.fnSetRight =*/&SwRect::Rigth_,
+ /*.fnSetRight =*/&SwRect::Right_,
/*.fnSetWidth =*/&SwRect::Width_,
/*.fnSetHeight =*/&SwRect::Height_,
@@ -113,7 +113,7 @@ static SwRectFnCollection aHorizontal = {
};
static SwRectFnCollection aVertical = {
- /*.fnGetTop =*/&SwRect::Rigth_,
+ /*.fnGetTop =*/&SwRect::Right_,
/*.fnGetBottom =*/&SwRect::Left_,
/*.fnGetLeft =*/&SwRect::Top_,
/*.fnGetRight =*/&SwRect::Bottom_,
@@ -122,7 +122,7 @@ static SwRectFnCollection aVertical = {
/*.fnGetPos =*/&SwRect::TopRight,
/*.fnGetSize =*/&SwRect::SwappedSize,
- /*.fnSetTop =*/&SwRect::Rigth_,
+ /*.fnSetTop =*/&SwRect::Right_,
/*.fnSetBottom =*/&SwRect::Left_,
/*.fnSetLeft =*/&SwRect::Top_,
/*.fnSetRight =*/&SwRect::Bottom_,
@@ -171,7 +171,7 @@ static SwRectFnCollection aBottomToTop = {
/*.fnGetTop =*/&SwRect::Bottom_,
/*.fnGetBottom =*/&SwRect::Top_,
/*.fnGetLeft =*/&SwRect::Left_,
- /*.fnGetRight =*/&SwRect::Rigth_,
+ /*.fnGetRight =*/&SwRect::Right_,
/*.fnGetWidth =*/&SwRect::Width_,
/*.fnGetHeight =*/&SwRect::Height_,
/*.fnGetPos =*/&SwRect::BottomLeft,
@@ -180,7 +180,7 @@ static SwRectFnCollection aBottomToTop = {
/*.fnSetTop =*/&SwRect::Bottom_,
/*.fnSetBottom =*/&SwRect::Top_,
/*.fnSetLeft =*/&SwRect::Left_,
- /*.fnSetRight =*/&SwRect::Rigth_,
+ /*.fnSetRight =*/&SwRect::Right_,
/*.fnSetWidth =*/&SwRect::Width_,
/*.fnSetHeight =*/&SwRect::Height_,
@@ -224,7 +224,7 @@ static SwRectFnCollection aBottomToTop = {
static SwRectFnCollection aVerticalRightToLeft = {
/*.fnGetTop =*/&SwRect::Left_,
- /*.fnGetBottom =*/&SwRect::Rigth_,
+ /*.fnGetBottom =*/&SwRect::Right_,
/*.fnGetLeft =*/&SwRect::Top_,
/*.fnGetRight =*/&SwRect::Bottom_,
/*.fnGetWidth =*/&SwRect::Height_,
@@ -233,7 +233,7 @@ static SwRectFnCollection aVerticalRightToLeft = {
/*.fnGetSize =*/&SwRect::SwappedSize,
/*.fnSetTop =*/&SwRect::Left_,
- /*.fnSetBottom =*/&SwRect::Rigth_,
+ /*.fnSetBottom =*/&SwRect::Right_,
/*.fnSetLeft =*/&SwRect::Top_,
/*.fnSetRight =*/&SwRect::Bottom_,
/*.fnSetWidth =*/&SwRect::Height_,
@@ -279,7 +279,7 @@ static SwRectFnCollection aVerticalRightToLeft = {
static SwRectFnCollection aVerticalLeftToRight = {
/*.fnGetTop =*/&SwRect::Left_,
- /*.fnGetBottom =*/&SwRect::Rigth_,
+ /*.fnGetBottom =*/&SwRect::Right_,
/*.fnGetLeft =*/&SwRect::Top_,
/*.fnGetRight =*/&SwRect::Bottom_,
/*.fnGetWidth =*/&SwRect::Height_,
@@ -288,7 +288,7 @@ static SwRectFnCollection aVerticalLeftToRight = {
/*.fnGetSize =*/&SwRect::SwappedSize,
/*.fnSetTop =*/&SwRect::Left_,
- /*.fnSetBottom =*/&SwRect::Rigth_,
+ /*.fnSetBottom =*/&SwRect::Right_,
/*.fnSetLeft =*/&SwRect::Top_,
/*.fnSetRight =*/&SwRect::Bottom_,
/*.fnSetWidth =*/&SwRect::Height_,
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index b7f816b1027a..74ab2b12b891 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2530,8 +2530,8 @@ void SwTabFramePainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) cons
// borders match the subsidiary lines of the upper:
if (aStart.X() == aUpper.Left())
aPaintStart.X() = aUpperAligned.Left();
- else if (aStart.X() == aUpper.Rigth_())
- aPaintStart.X() = aUpperAligned.Rigth_();
+ else if (aStart.X() == aUpper.Right_())
+ aPaintStart.X() = aUpperAligned.Right_();
if (aStart.Y() == aUpper.Top())
aPaintStart.Y() = aUpperAligned.Top();
else if (aStart.Y() == aUpper.Bottom_())
@@ -2539,8 +2539,8 @@ void SwTabFramePainter::PaintLines(OutputDevice& rDev, const SwRect& rRect) cons
if (aEnd.X() == aUpper.Left())
aPaintEnd.X() = aUpperAligned.Left();
- else if (aEnd.X() == aUpper.Rigth_())
- aPaintEnd.X() = aUpperAligned.Rigth_();
+ else if (aEnd.X() == aUpper.Right_())
+ aPaintEnd.X() = aUpperAligned.Right_();
if (aEnd.Y() == aUpper.Top())
aPaintEnd.Y() = aUpperAligned.Top();
else if (aEnd.Y() == aUpper.Bottom_())
@@ -2784,7 +2784,7 @@ void SwTabFramePainter::Insert( const SwFrame& rFrame, const SvxBoxItem& rBoxIte
aB.MirrorSelf();
const SwTwips nLeft = aBorderRect.Left_();
- const SwTwips nRight = aBorderRect.Rigth_();
+ const SwTwips nRight = aBorderRect.Right_();
const SwTwips nTop = aBorderRect.Top_();
const SwTwips nBottom = aBorderRect.Bottom_();
More information about the Libreoffice-commits
mailing list