From ee001e262a13bdd1f2c445a7ca2ee282b52d01bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 12 Nov 2005 13:29:07 +0000 Subject: [PATCH] Made it a bit clearer that virtuals do not work in the constructor the way you'd think they do. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14866 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TextControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/TextControl.cpp b/src/kits/interface/TextControl.cpp index fc9033d44b..4285b5e915 100644 --- a/src/kits/interface/TextControl.cpp +++ b/src/kits/interface/TextControl.cpp @@ -27,7 +27,7 @@ BTextControl::BTextControl(BRect frame, const char *name, const char *label, InitData(label, text); float height; - GetPreferredSize(NULL, &height); + BTextControl::GetPreferredSize(NULL, &height); ResizeTo(Bounds().Width(), height);