[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - include/tools

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 6 22:23:29 UTC 2019


 include/tools/gen.hxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e9b1c790155aa6eaf4ae45c890521dd23092b25e
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Tue Aug 6 22:37:07 2019 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Wed Aug 7 00:22:42 2019 +0200

    Add some set methods to tools::Rectangle
    
    Used in the redaction search method
    
    Change-Id: I16913c5e935f5611a23290afa45232f1d44ae8e9
    Reviewed-on: https://gerrit.libreoffice.org/77072
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index c733c40e6e49..776f5e9b90a4 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -391,6 +391,11 @@ public:
     void                SetSize( const Size& rSize );
     inline Size         GetSize() const;
 
+    void                SetLeft(long v)    { nLeft = v;   }
+    void                SetRight(long v)   { nRight = v;  }
+    void                SetTop(long v)     { nTop = v;    }
+    void                SetBottom(long v)  { nBottom = v; }
+
     /// Returns the difference between right and left, assuming the range is inclusive.
     inline long         GetWidth() const;
     /// Returns the difference between bottom and top, assuming the range is inclusive.


More information about the Libreoffice-commits mailing list