mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Fix going to a phantom line when there's no source file available.
This commit is contained in:
parent
a8c6c5f50e
commit
9ab2f35c08
@ -3950,14 +3950,15 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
||||
SetFont();
|
||||
if( ImGui::IsItemClicked( 0 ) )
|
||||
{
|
||||
m_targetLine = srcline;
|
||||
if( m_source.filename() == fileName )
|
||||
{
|
||||
m_targetLine = srcline;
|
||||
SelectLine( srcline, &worker, false );
|
||||
m_displayMode = DisplayMixed;
|
||||
}
|
||||
else if( SourceFileValid( fileName, worker.GetCaptureTime(), view, worker ) )
|
||||
{
|
||||
m_targetLine = srcline;
|
||||
ParseSource( fileName, worker, view );
|
||||
SelectLine( srcline, &worker, false );
|
||||
SelectViewMode();
|
||||
|
Loading…
Reference in New Issue
Block a user