summaryrefslogtreecommitdiff
path: root/src/location/qgeoboundingbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/qgeoboundingbox.cpp')
-rw-r--r--src/location/qgeoboundingbox.cpp3
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;