projects
/
situare
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdca888
)
Modified MapEngine::centerAndZoomTo margin adding.
author
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Wed, 11 Aug 2010 09:21:33 +0000
(12:21 +0300)
committer
Jussi Laitinen
<jupe@l3l7588.ixonos.local>
Wed, 11 Aug 2010 09:21:33 +0000
(12:21 +0300)
src/map/mapengine.cpp
patch
|
blob
|
history
diff --git
a/src/map/mapengine.cpp
b/src/map/mapengine.cpp
index
be0648f
..
4c239be
100644
(file)
--- a/
src/map/mapengine.cpp
+++ b/
src/map/mapengine.cpp
@@
-133,12
+133,12
@@
void MapEngine::centerAndZoomTo(QRect rect, bool useMargins)
{
qDebug() << __PRETTY_FUNCTION__;
- int marginHorizontal = 50;
- int marginVertical = 5;
+ int marginHorizontal = 0;
+ int marginVertical = 0;
- if (!useMargins) {
- marginHorizontal = 0;
- marginVertical = 0;
+ if (useMargins) {
+ marginHorizontal = 50;
+ marginVertical = 5;
}
// calculate the usable size of the view