diff options
Diffstat (limited to 'src/location/qgeoboundingbox.cpp')
-rw-r--r-- | src/location/qgeoboundingbox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/location/qgeoboundingbox.cpp b/src/location/qgeoboundingbox.cpp index 357ef07c..a5dc1801 100644 --- a/src/location/qgeoboundingbox.cpp +++ b/src/location/qgeoboundingbox.cpp @@ -148,6 +148,9 @@ QGeoBoundingBox::~QGeoBoundingBox() {} */ QGeoBoundingBox& QGeoBoundingBox::operator = (const QGeoBoundingBox & other) { + if (this == &other) + return *this; + QGeoBoundingArea::operator=(other); d_ptr = other.d_ptr; return *this; |