linux fix

This commit is contained in:
Mikulas Florek 2017-11-08 21:48:19 +01:00
parent 19e8afde62
commit 055873f0c0
2 changed files with 2 additions and 2 deletions

View file

@ -470,7 +470,7 @@ void AssetBrowser::fileColumn()
if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s", tile.filepath.data);
if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceAllowNullID))
{
ImGui::Text(tile.filepath);
ImGui::Text("%s", tile.filepath);
ImGui::SetDragDropPayload("path", tile.filepath, stringLength(tile.filepath) + 1, ImGuiCond_Once);
ImGui::EndDragDropSource();
}

View file

@ -1246,7 +1246,7 @@ public:
}
if (ImGui::BeginDragDropSource())
{
ImGui::Text(buffer);
ImGui::Text("%s", buffer);
ImGui::SetDragDropPayload("entity", &entity, sizeof(entity));
ImGui::EndDragDropSource();
}