mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed an issue where scraping using TheGamesDB would crash the application
This commit is contained in:
parent
b71b0d1abf
commit
ae779a42e6
|
@ -258,7 +258,8 @@ void GuiScraperSearch::resizeMetadata()
|
|||
float maxLblWidth {0.0f};
|
||||
for (auto it = mMD_Pairs.cbegin(); it != mMD_Pairs.cend(); ++it) {
|
||||
it->first->setFont(fontLbl);
|
||||
if (it->first->getTextCache()->metrics.size.x > maxLblWidth)
|
||||
if (it->first->getTextCache() != nullptr &&
|
||||
it->first->getTextCache()->metrics.size.x > maxLblWidth)
|
||||
maxLblWidth = it->first->getTextCache()->metrics.size.x +
|
||||
(16.0f * (mRenderer->getIsVerticalOrientation() ?
|
||||
mRenderer->getScreenHeightModifier() :
|
||||
|
|
Loading…
Reference in a new issue