Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F426
bug3212.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
xplanes
Jan 20 2010, 11:15 AM
2010-01-20 11:15:30 (UTC+1)
Size
481 B
Referenced Files
None
Subscribers
None
bug3212.diff
View Options
Index: mitkImage.cpp
===================================================================
--- mitkImage.cpp (revision 21081)
+++ mitkImage.cpp (working copy)
@@ -558,7 +558,7 @@
{
vol=AllocateVolumeData(t,n,data,importMemoryManagement);
if(vol.GetPointer()==NULL) return false;
- if ( vol->GetData() != data )
+ if ( vol->GetData() != data && data != NULL)
{
std::memcpy(vol->GetData(), data, m_OffsetTable[3]*(m_PixelType.GetBpe()/8));
}
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
410
Default Alt Text
bug3212.diff (481 B)
Attached To
Mode
T3212: BugFix: When using an empty Itk::Image, mitk::Image crashes
Attached
Detach File
Event Timeline
xplanes
added a comment.
Jan 20 2010, 11:15 AM
2010-01-20 11:15:30 (UTC+1)
Comment Actions
Unified patch
Log In to Comment