mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
add condition to break conductorAutonum if numerotationContext is empty
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2177 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -155,7 +155,8 @@ void ConductorAutoNumerotation::numeratePotential() {
|
||||
* create and apply a new numerotation to @conductor_
|
||||
*/
|
||||
void ConductorAutoNumerotation::numerateNewConductor() {
|
||||
if (!conductor_) return;
|
||||
if (!conductor_ || num_context.isEmpty()) return;
|
||||
|
||||
NumerotationContextCommands ncc (diagram_, num_context);
|
||||
applyText(ncc.toRepresentedString());
|
||||
diagram_-> setNumerotation(Diagram::Conductors, ncc.next());
|
||||
|
||||
Reference in New Issue
Block a user