Commit cb596fce authored by Mathieu Westphal's avatar Mathieu Westphal
Browse files

Marked image as dirty when set use cache to false

parent e82d8e15
...@@ -309,6 +309,7 @@ void QVTKWidget::setAutomaticImageCacheEnabled(bool flag) ...@@ -309,6 +309,7 @@ void QVTKWidget::setAutomaticImageCacheEnabled(bool flag)
this->mCachedImage->Initialize(); this->mCachedImage->Initialize();
this->mCachedImage->SetOrigin(0,0,0); this->mCachedImage->SetOrigin(0,0,0);
this->mCachedImage->SetSpacing(1,1,1); this->mCachedImage->SetSpacing(1,1,1);
this->markCachedImageAsDirty();
} }
} }
bool QVTKWidget::isAutomaticImageCacheEnabled() const bool QVTKWidget::isAutomaticImageCacheEnabled() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment