<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I found a serious bug when mrview overwrites an ROI image that is in nii gz format it crashes. This is a patch:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">diff -ru b/lib/image/mapper.cpp a/lib/image/mapper.cpp<o:p></o:p></p>
<p class="MsoNormal">--- b/lib/image/mapper.cpp 2014-02-25 20:49:26.000000000 +1100<o:p></o:p></p>
<p class="MsoNormal">+++ a/lib/image/mapper.cpp 2014-05-02 15:37:46.547683468 +1000<o:p></o:p></p>
<p class="MsoNormal">@@ -210,6 +210,13 @@<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"> info ("writing compressed data to \"" + gzfile + "\"...");<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">+ // check if file exists, <o:p></o:p></p>
<p class="MsoNormal">+ if(g_file_test (gzfile.c_str(), G_FILE_TEST_EXISTS)) {<o:p></o:p></p>
<p class="MsoNormal">+ if(g_unlink(gzfile.c_str()) == -1) {<o:p></o:p></p>
<p class="MsoNormal">+ fclose (infile);<o:p></o:p></p>
<p class="MsoNormal">+ throw Exception ("error deleting file \"" + gzfile + "\": " + Glib::strerror(errno));<o:p></o:p></p>
<p class="MsoNormal">+ }<o:p></o:p></p>
<p class="MsoNormal">+ }<o:p></o:p></p>
<p class="MsoNormal"> int fid = g_open (gzfile.c_str(), O_CREAT | O_RDWR | O_EXCL, 0755);<o:p></o:p></p>
<p class="MsoNormal"> if (fid < 0) {<o:p></o:p></p>
<p class="MsoNormal"> fclose (infile);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt"><b><span style="font-size:8.5pt;font-family:"Helvetica","sans-serif";color:#00A3D7">Dr </span></b><b><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#00A3D7">Chris Adamson <br>
</span></b><span style="font-size:8.5pt;font-family:"Helvetica","sans-serif";color:#2C1376">Research Officer, Developmental Imaging, <b>Murdoch Childrens Research Institute <br>
</b></span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#929292">Murdoch Childrens Research Institute <br>
Royal Children’s Hospital<br>
Flemington Road, Parkville, Victoria 3052, Australia<br>
<a href="http://www.mcri.edu.au/"><span style="color:blue">www.mcri.edu.au</span></a></span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#2C1376"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:"Helvetica","sans-serif";color:#929292">E chris.adamson@mcri.edu.au
<br>
T 03 9936 6780</span><span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#929292"> </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear="both">
______________________________________________________________________<BR>
This email has been scanned by the Symantec Email Security.cloud service.<BR>
For more information please visit http://www.symanteccloud.com<BR>
______________________________________________________________________<BR>
</body>
</html>