[qet] [2177] add condition to break conductorAutonum if numerotationContext is empty |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2177
Author: blacksun
Date: 2013-05-21 18:35:50 +0200 (Tue, 21 May 2013)
Log Message:
-----------
add condition to break conductorAutonum if numerotationContext is empty
Modified Paths:
--------------
trunk/sources/conductorautonumerotation.cpp
Modified: trunk/sources/conductorautonumerotation.cpp
===================================================================
--- trunk/sources/conductorautonumerotation.cpp 2013-05-21 15:19:11 UTC (rev 2176)
+++ trunk/sources/conductorautonumerotation.cpp 2013-05-21 16:35:50 UTC (rev 2177)
@@ -155,7 +155,8 @@
* 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());