Explorar el Código

Fix Qt warning due to negative maximum status label width.

git-svn-id: file:///var/svn/tigccpp/trunk@450 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler hace 18 años
padre
commit
7b2df89268
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ktigcc/mainform.ui.h

+ 1 - 1
ktigcc/mainform.ui.h

@@ -1919,7 +1919,7 @@ void MainForm::updateRightStatusLabel()
       charsStatusLabel->show();
       charsStatusLabel->setMaximumWidth(100);
       charsStatusLabel->setText(QString("%1 Characters").arg(m_view->getDoc()->text().length()));
-      rightStatusLabel->setMaximumWidth(rightStatusSize-160);
+      rightStatusLabel->setMaximumWidth(rightStatusSize-160>0?rightStatusSize-160:0);
     } else {
       rowStatusLabel->hide();
       colStatusLabel->hide();