]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_funcs.cpp
* temporary fix for the crash of the pixmap cache on Mac with Qt 4.4.
[lyx.git] / src / paragraph_funcs.cpp
index d8a7a858fb00945345ad0d055717b258cdb0bd2c..e59e4a5909ef05df2e6b0d6a512ed0a920a37c61 100644 (file)
@@ -36,7 +36,7 @@ static bool moveItem(Paragraph & fromPar, pos_type fromPos,
        // Note: moveItem() does not honour change tracking!
        // Therefore, it should only be used for breaking and merging paragraphs
 
-       Font const tmpFont = fromPar.getFontSettings(params, fromPos);
+       Font const tmpFont = fromPar.getFontSettings(params, fromPos);
        Change const & tmpChange = fromPar.lookupChange(fromPos);
 
        if (Inset * tmpInset = fromPar.getInset(fromPos)) {
@@ -123,7 +123,7 @@ void breakParagraph(BufferParams const & bparams,
                // breaking paragraph.
                if (tmp->empty()) {
                        Font changed = tmp->getFirstFontSettings(bparams);
-                       Font old = par.getFontSettings(bparams, par.size());
+                       Font const & old = par.getFontSettings(bparams, par.size());
                        changed.setLanguage(old.language());
                        tmp->setFont(0, changed);
                }