Skip to content

Commit 29c0bc0

Browse files
Fix crash because intermediate function result goes out of scope
1 parent 66a41ef commit 29c0bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ScatterplotPlugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ ScatterplotPlugin::ScatterplotPlugin(const PluginFactory* factory) :
133133
if (datasetsMimeData->getDatasets().count() > 1)
134134
return dropRegions;
135135

136-
const auto& dataset = datasetsMimeData->getDatasets().first();
136+
const auto dataset = datasetsMimeData->getDatasets().first();
137137
const auto datasetGuiName = dataset->text();
138138
const auto datasetId = dataset->getId();
139139
const auto dataType = dataset->getDataType();

0 commit comments

Comments
 (0)