Fixed clipboard paste position and added back item count to debug menu
This commit is contained in:
parent
fb3b13d303
commit
a3fb87332b
4 changed files with 16 additions and 2 deletions
|
|
@ -62,6 +62,17 @@ void DrawingProgramLayerListItem::get_flattened_layer_list(std::vector<DrawingPr
|
|||
objList.emplace_back(this);
|
||||
}
|
||||
|
||||
uint32_t DrawingProgramLayerListItem::get_component_count() const {
|
||||
if(folderData) {
|
||||
uint32_t toRet = 0;
|
||||
for(auto& c : folderData->folderList->get_data())
|
||||
toRet += c->obj->get_component_count();
|
||||
return toRet;
|
||||
}
|
||||
else
|
||||
return layerData->components->size();
|
||||
}
|
||||
|
||||
bool DrawingProgramLayerListItem::is_folder() const {
|
||||
return folderData != nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue