From 6b9ce834e1acc389cd47341e71bff3d7df7d3dc3 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Mon, 26 May 2025 17:54:10 +0800 Subject: [PATCH] Fix text alignment of storage page error message --- src/slic3r/GUI/ImageGrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/ImageGrid.cpp b/src/slic3r/GUI/ImageGrid.cpp index ebfdb33ea4..feb57644b2 100644 --- a/src/slic3r/GUI/ImageGrid.cpp +++ b/src/slic3r/GUI/ImageGrid.cpp @@ -520,7 +520,7 @@ void ImageGrid::render(wxDC& dc) dc.DrawRectangle({ 0, 0, size.x, size.y }); if (!m_status_msg.IsEmpty()) { auto si = m_status_icon.GetBmpSize(); - auto st = dc.GetTextExtent(m_status_msg); + auto st = dc.GetMultiLineTextExtent(m_status_msg); auto rect = wxRect{0, 0, max(st.x, si.x), si.y + 26 + st.y}.CenterIn(wxRect({0, 0}, size)); dc.DrawBitmap(m_status_icon.bmp(), rect.x + (rect.width - si.x) / 2, rect.y); dc.SetTextForeground(wxColor(0x909090));