mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't print empty text, just advance cursor.
This commit is contained in:
parent
3711a66592
commit
f2b044438d
@ -517,7 +517,8 @@ void SourceView::RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint
|
||||
{
|
||||
if( ipcnt == 0 )
|
||||
{
|
||||
ImGui::TextUnformatted( " " );
|
||||
const auto ts = ImGui::CalcTextSize( " " );
|
||||
ImGui::ItemSize( ImVec2( 7 * ts.x, ts.y ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -589,7 +590,8 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip
|
||||
{
|
||||
if( ipcnt == 0 )
|
||||
{
|
||||
ImGui::TextUnformatted( " " );
|
||||
const auto ts = ImGui::CalcTextSize( " " );
|
||||
ImGui::ItemSize( ImVec2( 7 * ts.x, ts.y ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user