From 155f308e2cb07337a1c59411d7e1f0cf628f1697 Mon Sep 17 00:00:00 2001 From: blacksun Date: Tue, 21 May 2013 16:35:50 +0000 Subject: [PATCH] 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 --- sources/conductorautonumerotation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/conductorautonumerotation.cpp b/sources/conductorautonumerotation.cpp index 90d4e1b9e..f59227dbd 100644 --- a/sources/conductorautonumerotation.cpp +++ b/sources/conductorautonumerotation.cpp @@ -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());