Skip to content

Commit 999e00d

Browse files
committed
Fix TIFF reading bug that never got hit by anything in WarpTools
1 parent 2d28227 commit 999e00d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WarpLib/Tools/IOHelper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ public static float[][] ReadMapFloat(string path, int2 headerlessSliceDims, long
209209
{
210210
Data = ((HeaderTiff)Header).ReadData(stream, layers);
211211
}
212+
213+
if (reuseBuffer != null)
214+
for (int i = 0; i < Data.Length; i++)
215+
Array.Copy(Data[i], reuseBuffer[i], Data[i].Length);
212216
}
213217

214218
return Data;

0 commit comments

Comments
 (0)