Skip to content

Commit

Permalink
fixed MapRasterLayer not drawn correctly on print analog to #1137
Browse files Browse the repository at this point in the history
  • Loading branch information
jany-tenaj committed Dec 29, 2018
1 parent 5a0461c commit 2c23027
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -149,5 +149,6 @@ Be aware that code written for 1.9 will not work out of the box because DotSpati
- Shape File Saves with Wrong DataTypes (#1005) - Shape File Saves with Wrong DataTypes (#1005)
- Calculation of translation param in InRamImageData.GetBitmap is defective (#1203) - Calculation of translation param in InRamImageData.GetBitmap is defective (#1203)
- MapImageLayer not drawn correctly on print (#1137) - MapImageLayer not drawn correctly on print (#1137)
- MapRasterLayer not drawn correctly on print
- Create Categories for symbology is inconsistent with large datasets (#1242) - Create Categories for symbology is inconsistent with large datasets (#1242)
- Geographic projections now have a Name property - Geographic projections now have a Name property
2 changes: 1 addition & 1 deletion Source/DotSpatial.Controls/MapRasterLayer.cs
Expand Up @@ -307,7 +307,7 @@ private void DrawWindows(MapArgs args, IList<Extent> regions, IList<Rectangle> c
{ {
using (Bitmap bmp = BitmapGetter.GetBitmap(regions[i], clipRectangles[i])) using (Bitmap bmp = BitmapGetter.GetBitmap(regions[i], clipRectangles[i]))
{ {
if (bmp != null) g.DrawImage(bmp, clipRectangles[i]); if (bmp != null) g.DrawImage(bmp, new Rectangle(0, 0, clipRectangles[i].Width, clipRectangles[i].Height));
} }
} }


Expand Down

0 comments on commit 2c23027

Please sign in to comment.