Permalink
Browse files

fixed MapRasterLayer not drawn correctly on print analog to #1137

  • Loading branch information...
jany-tenaj committed Dec 29, 2018
1 parent 5a0461c commit 2c2302778278e61a01143b1ea6c8126a3ae8198e
Showing with 2 additions and 1 deletion.
  1. +1 −0 Changelog.md
  2. +1 −1 Source/DotSpatial.Controls/MapRasterLayer.cs
@@ -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)
- Calculation of translation param in InRamImageData.GetBitmap is defective (#1203)
- MapImageLayer not drawn correctly on print (#1137)
- MapRasterLayer not drawn correctly on print
- Create Categories for symbology is inconsistent with large datasets (#1242)
- Geographic projections now have a Name property
@@ -307,7 +307,7 @@ private void DrawWindows(MapArgs args, IList<Extent> regions, IList<Rectangle> c
{
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));
}
}

0 comments on commit 2c23027

Please sign in to comment.