Don't print empty text, just advance cursor.

This commit is contained in:
Bartosz Taudul 2020-04-04 02:45:01 +02:00
parent 3711a66592
commit f2b044438d

View File

@ -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
{