[apps] Fix comment aesthetics

Change-Id: I3e91391f0751515efe50ec4e4335a2421f2acbee
This commit is contained in:
Léa Saviot
2018-04-11 17:11:05 +02:00
parent 88aaab64ba
commit 0fcd2a90f6

View File

@@ -115,10 +115,10 @@ bool SequenceToolbox::selectAddedCell(int selectedRow){
char buffer[bufferSize];
m_addedCellLayout[selectedRow]->writeTextInBuffer(buffer, bufferSize);
if (m_action == MathToolbox::actionForTextInput) {
// DIRTY. The symbols are layouted using a Subscript VerticalOffsetLayout,
// which serializes into "_{}", but we want parentheses for text fields. We
// thus need to remove any underscores, and changes brackets into
// parentheses.
/* DIRTY. The symbols are layouted using a Subscript VerticalOffsetLayout,
* which serializes into "_{}", but we want parentheses for text fields. We
* thus need to remove any underscores, and changes brackets into
* parentheses. */
for (int i = 0; i < bufferSize; i++) {
if (buffer[i] == '{') {
buffer[i] = '(';