]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Turn an error message into a Debug::LOCALE warning
[lyx.git] / src / TextMetrics.cpp
index e122d6a6a1d74f005b66460fb9c8a45b33922811..52e815acc532df8b711f940159410db4b5b6aa63 100644 (file)
@@ -1152,11 +1152,10 @@ Dimension TextMetrics::rowHeight(pit_type const pit, pos_type const first,
                pit_type nextpit = pit + 1;
                if (nextpit != pit_type(pars.size())) {
                        pit_type cpit = pit;
-                       double usual = 0;
-                       double unusual = 0;
 
                        if (pars[cpit].getDepth() > pars[nextpit].getDepth()) {
-                               usual = pars[cpit].layout().bottomsep * dh;
+                               double usual = pars[cpit].layout().bottomsep * dh;
+                               double unusual = 0;
                                cpit = text_->depthHook(cpit, pars[nextpit].getDepth());
                                if (pars[cpit].layout() != pars[nextpit].layout()
                                        || pars[nextpit].getLabelWidthString() != pars[cpit].getLabelWidthString())