mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't assume a schematic. (KICAD-G7S)
This commit is contained in:
parent
e1d1243a91
commit
4b510c59f9
@ -218,6 +218,9 @@ bool SCH_NAVIGATE_TOOL::CanGoPrevious()
|
||||
|
||||
bool SCH_NAVIGATE_TOOL::CanGoNext()
|
||||
{
|
||||
if( !m_frame->Schematic().IsValid() )
|
||||
return false;
|
||||
|
||||
return m_frame->GetCurrentSheet().GetVirtualPageNumber()
|
||||
< (int) m_frame->Schematic().Hierarchy().size();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user