From 37420cfb78718d7a7ac9bfde754fbd62c6d29f2c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 10 Jan 2014 02:58:51 -0600 Subject: Increase DSP memory size Fix potential crash in FPGA viewer if hardware debug interface is malfunctioning or offline --- clients/tde/src/part/fpgaview/part.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'clients/tde') diff --git a/clients/tde/src/part/fpgaview/part.cpp b/clients/tde/src/part/fpgaview/part.cpp index 7ddec7d..36809c2 100644 --- a/clients/tde/src/part/fpgaview/part.cpp +++ b/clients/tde/src/part/fpgaview/part.cpp @@ -1203,8 +1203,12 @@ void FPGAViewPart::receiveInputStatesFromRemoteFPGA() { m_dataMemoryImageHeight = newSize; m_base->groupInputImage->setTitle(TQString("Input Image (%1x%2):").arg(m_dataMemoryImageWidth).arg(m_dataMemoryImageHeight)); m_base->groupOutputImage->setTitle(TQString("Output Image (%1x%2):").arg(m_dataMemoryImageWidth).arg(m_dataMemoryImageHeight)); - m_inputImageViewer->resize(m_dataMemoryImageWidth, m_dataMemoryImageHeight); - m_outputImageViewer->resize(m_dataMemoryImageWidth, m_dataMemoryImageHeight); + if (m_inputImageViewer) { + m_inputImageViewer->resize(m_dataMemoryImageWidth, m_dataMemoryImageHeight); + } + if (m_outputImageViewer) { + m_outputImageViewer->resize(m_dataMemoryImageWidth, m_dataMemoryImageHeight); + } m_dataMemorySizePrev = m_dataMemorySize; } -- cgit v1.2.1