Skip to content

Commit 9709905

Browse files
authored
Merge pull request #206 from x1y9/pr-hang-open-dicom
fix hang on opening some dicom files
2 parents 3405071 + 9b699c7 commit 9709905

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GUI/Renderer/SliceWindowDecorationRenderer.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
void
1414
SliceWindowDecorationRenderer::RenderOverMainViewport(AbstractRenderContext *context)
15-
{
15+
{
16+
if (!m_Model || !m_Model->IsSliceInitialized())
17+
return;
18+
1619
// Push an identity transform in logical pixel units
1720
double vppr = m_Model->GetSizeReporter()->GetViewportPixelRatio();
1821
context->PushMatrix();

0 commit comments

Comments
 (0)