{"action":"closed","issue":{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/579","repository_url":"https://api.github.com/repos/DotSpatial/DotSpatial","labels_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/579/comments","events_url":"https://api.github.com/repos/DotSpatial/DotSpatial/issues/579/events","html_url":"https://github.com/DotSpatial/DotSpatial/issues/579","id":153416859,"number":579,"title":"Setting a projection with CentralMeridian = null Issue","user":{"login":"mogikanin","id":840681,"avatar_url":"https://avatars.githubusercontent.com/u/840681?v=3","gravatar_id":"","url":"https://api.github.com/users/mogikanin","html_url":"https://github.com/mogikanin","followers_url":"https://api.github.com/users/mogikanin/followers","following_url":"https://api.github.com/users/mogikanin/following{/other_user}","gists_url":"https://api.github.com/users/mogikanin/gists{/gist_id}","starred_url":"https://api.github.com/users/mogikanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mogikanin/subscriptions","organizations_url":"https://api.github.com/users/mogikanin/orgs","repos_url":"https://api.github.com/users/mogikanin/repos","events_url":"https://api.github.com/users/mogikanin/events{/privacy}","received_events_url":"https://api.github.com/users/mogikanin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/DotSpatial/DotSpatial/labels/CodePlex","name":"CodePlex","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T09:46:38Z","updated_at":"2016-05-06T09:46:39Z","closed_at":"2016-05-06T09:46:38Z","body":"**This issue was imported from [CodePlex](http://dotspatial.codeplex.com/workitem/24058)**\r\n\r\n**[CrashDude](http://www.codeplex.com/site/users/view/CrashDude)** wrote 2013-03-12 at 17:49\r\nWhen setting a projection with CentralMeridian = null for the active map, everythings looks okay.\r\n\r\nBut when you try to change the projection of the map again you will get an error.\r\n\r\n\r\n\r\nI have found the cause of the error (see screenshots).\r\n\r\nWhen you use the CopyProperties() method all the nullable doubles that are null, wil be copied as 0.0d\r\n\r\nThe crash happens further when the ProjectionInfo class validates the CentralMeridian ( != null).\r\n\r\n\r\n\r\nThis happend when setting the projection of the map to Projected -> NationalGrids -> Rijksdriehoekstelsel.\r\n\r\n\r\n\r\nThe crash happens when setting this projection, and after you return to the map, trying to change it again (in the legend by right clicking)\r\n\r\n\r\n\r\nI was using version 1.4 when I encountered the error. And I was able to reproduce the error using the sourcecode.\r\n\r\n**[mogikanin](http://www.codeplex.com/site/users/view/mogikanin)** wrote 2014-02-26 at 11:28\r\nHi, i can't reproduce this error with lates DS (1.6). Could you check it?\r\n\r\n**[CrashDude](http://www.codeplex.com/site/users/view/CrashDude)** wrote 2014-04-19 at 15:59\r\nThe problem was indeed solved in a later release."}}