summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/part/fpgaview
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-01-10 02:58:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-01-10 02:58:51 -0600
commit37420cfb78718d7a7ac9bfde754fbd62c6d29f2c (patch)
treebe4c7467e1ed3d1e12c8f5ce7d054758880440ca /clients/tde/src/part/fpgaview
parent4436bddc8ceecb5277de73de6c929a3bb6722143 (diff)
downloadulab-37420cfb78718d7a7ac9bfde754fbd62c6d29f2c.tar.gz
ulab-37420cfb78718d7a7ac9bfde754fbd62c6d29f2c.zip
Increase DSP memory size
Fix potential crash in FPGA viewer if hardware debug interface is malfunctioning or offline
Diffstat (limited to 'clients/tde/src/part/fpgaview')
-rw-r--r--clients/tde/src/part/fpgaview/part.cpp8
1 files changed, 6 insertions, 2 deletions
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;
}