Skip to content

Commit

Permalink
One more qt buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 24, 2024
1 parent d8e95af commit b45a628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/Render/Text/draw_text_qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ void TextDrawerQt::MeasureString(std::string_view str, float *w, float *h) {
*h = entry->height * fontScaleY_ * dpiScale_;
}

void TextDrawerQt::MeasureStringRect(const char *str, const Bounds &bounds, float *w, float *h, int align) {
std::string toMeasure = std::string(str, len);
void TextDrawerQt::MeasureStringRect(std::string_view str, const Bounds &bounds, float *w, float *h, int align) {
std::string toMeasure = std::string(str);
int wrap = align & (FLAG_WRAP_TEXT | FLAG_ELLIPSIZE_TEXT);
if (wrap) {
bool rotated = (align & (ROTATE_90DEG_LEFT | ROTATE_90DEG_RIGHT)) != 0;
Expand Down

0 comments on commit b45a628

Please sign in to comment.