From 59a32793d25035c1ae564741b9b9d59d41162ea3 Mon Sep 17 00:00:00 2001 From: NoNormalDev <190293561+NoNormalDev@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:33:30 +0200 Subject: [PATCH] Clean up one statement using an already defined variable --- editor/inspector/editor_resource_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/inspector/editor_resource_picker.cpp b/editor/inspector/editor_resource_picker.cpp index 0b1d26ec61..213bd458ce 100644 --- a/editor/inspector/editor_resource_picker.cpp +++ b/editor/inspector/editor_resource_picker.cpp @@ -1764,7 +1764,7 @@ void EditorAudioStreamPicker::_preview_draw() { float text_width = size.width - 4 * EDSCALE - icon->get_width(); if (text_width > 0) { - stream_preview_rect->draw_string(font, Point2i(EDSCALE * 4 + icon->get_width(), rect.position.y + font->get_ascent(font_size) + (rect.size.height - font->get_height(font_size)) / 2), text, HORIZONTAL_ALIGNMENT_CENTER, text_width, font_size, get_theme_color(SceneStringName(font_color), EditorStringName(Editor))); + stream_preview_rect->draw_string(font, Point2i(size.width - text_width, rect.position.y + font->get_ascent(font_size) + (rect.size.height - font->get_height(font_size)) / 2), text, HORIZONTAL_ALIGNMENT_CENTER, text_width, font_size, get_theme_color(SceneStringName(font_color), EditorStringName(Editor))); } }