From 1db169244ab1201c07d86ace3991708cbdf01b72 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 16 Jun 2019 15:08:52 +0200 Subject: [PATCH] GSpinBox: The initial text should be "0". --- LibGUI/GSpinBox.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/LibGUI/GSpinBox.cpp b/LibGUI/GSpinBox.cpp index f7a6d4b38d..774878c9dd 100644 --- a/LibGUI/GSpinBox.cpp +++ b/LibGUI/GSpinBox.cpp @@ -6,6 +6,7 @@ GSpinBox::GSpinBox(GWidget* parent) : GWidget(parent) { m_editor = new GTextEditor(GTextEditor::Type::SingleLine, this); + m_editor->set_text("0"); m_editor->on_change = [this] { bool ok; int value = m_editor->text().to_uint(ok);