Skip to content

Commit 75f6094

Browse files
author
timlinux
committedJan 21, 2008

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎python/core/qgsmaprender.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ class QgsMapRender : QObject
3333
double scale() const;
3434
double mupp() const;
3535

36+
int width() const;
37+
int height() const;
38+
39+
3640
//! Recalculate the map scale
3741
void updateScale();
3842

‎src/core/qgsmaprender.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class CORE_EXPORT QgsMapRender : public QObject
6464
double scale() const { return mScale; }
6565
double mupp() const { return mMupp; }
6666

67+
int width() const { return mSize.width(); };
68+
int height() const { return mSize.height(); };
69+
6770
//! Recalculate the map scale
6871
void updateScale();
6972

0 commit comments

Comments
 (0)
Please sign in to comment.