[Gui] Fix string coding on selection changed

This commit is contained in:
Syres916
2025-11-20 21:37:05 +00:00
committed by GitHub
parent 76071ffbeb
commit a10fbf2e8c

View File

@@ -162,9 +162,9 @@ void SelectionView::onSelectionChanged(const SelectionChanges& Reason)
const char* objName,
const char* subName,
App::DocumentObject* obj) {
str << docName;
str << QString::fromUtf8(docName);
str << "#";
str << objName;
str << QString::fromUtf8(objName);
if (subName != 0 && subName[0] != 0) {
str << ".";
/* Original code doesn't take account of histories in subelement names and displays