[Uml-devel] KDE/kdesdk/umbrello/umbrello/codegenerators
Andi Fischer
andi.fischer at hispeed.ch
Wed Aug 13 18:50:22 UTC 2008
SVN commit 846608 by fischer:
Quick fix for bug 168351. Needs more investigation.
M +8 -2 codegenerationpolicy.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/codegenerators/codegenerationpolicy.cpp #846607:846608
@@ -298,8 +298,14 @@
break;
}
- for (int i = 0; i < Settings::getOptionState().codeGenerationState.indentationAmount; i++)
- m_indentation += indent;
+ if (Settings::getOptionState().codeGenerationState.indentationAmount > 999) { //:TODO: fix this - no initialization
+ uDebug() << "too big indentation amount = " << Settings::getOptionState().codeGenerationState.indentationAmount;
+ }
+ else {
+ for (int i = 0; i < Settings::getOptionState().codeGenerationState.indentationAmount; ++i) {
+ m_indentation += indent;
+ }
+ }
}
/**
More information about the umbrello-devel
mailing list