From 0dc05335014e46393f1e10597ecc5250a6fabaa8 Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Wed, 10 Jan 2018 10:21:14 +0100 Subject: [PATCH] #2350 Elm props: Fix crash when table has only one data column --- ApplicationCode/FileInterface/RifElementPropertyTableReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/FileInterface/RifElementPropertyTableReader.cpp b/ApplicationCode/FileInterface/RifElementPropertyTableReader.cpp index eac61d4c9b..9a1992b770 100644 --- a/ApplicationCode/FileInterface/RifElementPropertyTableReader.cpp +++ b/ApplicationCode/FileInterface/RifElementPropertyTableReader.cpp @@ -124,7 +124,7 @@ void RifElementPropertyTableReader::readData(const RifElementPropertyMetadata *m if (!dataBlockFound) { - if (!line.startsWith("*") && cols.size() == expectedColumnCount) dataBlockFound = true; + if (!line.startsWith("*") && !line.startsWith(",") && cols.size() == expectedColumnCount) dataBlockFound = true; else continue; }