Skip to content
Permalink
Browse files
QgsTextRenderer::drawTextInternalHorizontal(): remove dead code
  • Loading branch information
rouault authored and nyalldawson committed Jul 22, 2021
1 parent 4e0e9ff commit 75684779225b5cf73c92cddafa679795d851157c
Showing with 0 additions and 6 deletions.
  1. +0 −6 src/core/textrenderer/qgstextrenderer.cpp
@@ -1427,12 +1427,6 @@ void QgsTextRenderer::drawTextInternalHorizontal( QgsRenderContext &context, con
if ( mode == Rect && vAlignment != AlignTop )
{
std::optional< QgsScopedRenderContextReferenceScaleOverride > referenceScaleOverride;
if ( mode == Label )
{
// label size has already been calculated using any symbology reference scale factor -- we need
// to temporarily remove the reference scale here or we'll be applying the scaling twice
referenceScaleOverride.emplace( QgsScopedRenderContextReferenceScaleOverride( context, -1.0 ) );
}

const double overallHeight = textHeight( context, format, textLines, Rect );
switch ( vAlignment )

0 comments on commit 7568477

Please sign in to comment.