From fdf6d4e86222cd1c598f7c8b27402bf6e4238a47 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Tue, 23 Jun 2020 21:16:28 -0300 Subject: [PATCH] Python XDataSeries - Don't use RideFileCommand when readOnly It is unnecessary and too slow Fixes #3445 --- src/Python/SIP/Bindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/SIP/Bindings.cpp b/src/Python/SIP/Bindings.cpp index 47afc0d6a..3e0a7fda6 100644 --- a/src/Python/SIP/Bindings.cpp +++ b/src/Python/SIP/Bindings.cpp @@ -879,7 +879,7 @@ PythonXDataSeries::PythonXDataSeries() bool PythonXDataSeries::set(int i, double value) { - if (rideFile) { + if (!readOnly && rideFile) { if (!setColIdx()){ return false; }