From 17aed1bfc8f4bc1c76f5aa86923f3b0a9c5fbf17 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sun, 26 May 2013 01:43:56 -0400 Subject: [PATCH] Use roundf() as suggested by Axel --- src/kits/interface/MenuField.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/interface/MenuField.cpp b/src/kits/interface/MenuField.cpp index cdfe7477f7..3dbd9c4b40 100644 --- a/src/kits/interface/MenuField.cpp +++ b/src/kits/interface/MenuField.cpp @@ -625,10 +625,9 @@ BMenuField::Alignment() const void BMenuField::SetDivider(float position) { - position = floorf(position + 0.5); + position = roundf(position); float delta = fDivider - position; - if (delta == 0.0f) return;