Skip to content

Commit 2fc93d2

Browse files
committed
Only check for existing Iterations in writeOnly mode
1 parent 344fcfe commit 2fc93d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Series.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,12 +1435,7 @@ void Series::flushGorVBased(
14351435
bool flushIOHandler)
14361436
{
14371437
if (iterationEncoding() == IterationEncoding::variableBased &&
1438-
/*
1439-
* At parsing time, this might happen since iterations might contain
1440-
* errors and be deleted.
1441-
*/
1442-
IOHandler()->m_seriesStatus != internal::SeriesStatus::Parsing &&
1443-
iterations.empty())
1438+
access::writeOnly(IOHandler()->m_frontendAccess) && iterations.empty())
14441439
{
14451440
/*
14461441
* Note: Unlike flushFileBased, it's ok if `begin == end` since this

0 commit comments

Comments
 (0)