]> sigrok.org Git - pulseview.git/blobdiff - pv/views/decoder_output/QHexView.hpp
DecodeOutputView: Use delayed view updater and cache current chunk
[pulseview.git] / pv / views / decoder_output / QHexView.hpp
index fca3c7efa798a4e95f8f9c388464516a0bcd142a..37b7e4e4d7394320570fb653bbd0df078f5fe241 100644 (file)
@@ -85,7 +85,7 @@ private:
        size_t selectBegin_, selectEnd_, selectInit_, cursorPos_;
 
        size_t current_chunk_id_, current_chunk_offset_, current_offset_;
-       const DecodeBinaryDataChunk* current_chunk_;
+       DecodeBinaryDataChunk current_chunk_; // Cache locally so that we're not messed up when the vector is re-allocating its data
 
        vector<QColor> chunk_colors_;
 };