mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
Add some context to obscure warning, reduce message logs noise
This commit is contained in:
parent
06b3678a57
commit
301793678d
@ -355,7 +355,10 @@ void QgsLayoutItemPicture::refreshPicture( const QgsExpressionContext *context )
|
|||||||
{
|
{
|
||||||
mHasExpressionError = true;
|
mHasExpressionError = true;
|
||||||
source = QString();
|
source = QString();
|
||||||
QgsMessageLog::logMessage( tr( "Picture expression eval error" ) );
|
if ( scopedContext.feature().isValid() )
|
||||||
|
{
|
||||||
|
QgsMessageLog::logMessage( QStringLiteral( "%1: %2" ).arg( tr( "Picture expression eval error" ), sourceProperty.asExpression() ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ( source.type() != QVariant::ByteArray )
|
else if ( source.type() != QVariant::ByteArray )
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user