forked from organicmaps/organicmaps
[drape] AnyRectD not store it's GlobalRect (X aligned rect). We can't use const ref on it. This rect stored in ScreenBase as clip rect.
This commit is contained in:
parent
9df77c4121
commit
f3165bbbe9
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ namespace df
|
|||
double const rectSize = range / (1 << tileScale);
|
||||
|
||||
m2::AnyRectD const & globalRect = screen.GlobalRect();
|
||||
m2::RectD const & clipRect = globalRect.GetGlobalRect();
|
||||
m2::RectD const & clipRect = screen.ClipRect();
|
||||
|
||||
int const minTileX = static_cast<int>(floor(clipRect.minX() / rectSize));
|
||||
int const maxTileX = static_cast<int>(ceil(clipRect.maxX() / rectSize));
|
||||
|
|
Loading…
Add table
Reference in a new issue