[haiku-bugs] Re: [Haiku] #8391: BTextView::SetAlignment Bug?

  • From: "MrPingouin" <trac@xxxxxxxxxxxx>
  • Date: Thu, 04 Dec 2014 02:53:33 -0000

#8391: BTextView::SetAlignment Bug?
----------------------------------+-----------------------
   Reporter:  cipri               |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/alpha3
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+-----------------------

Comment (by MrPingouin):

 PulkoMandy sent me there because of EasyTask #11528 and the non-centered
 text in the Mouse Preferences' TextControl.

 After some checking, it seems that _BTextInput_::AlignTextRect() ignores
 the value of BTextView::Alignment().

 I have a modified functional version of TextInput.cpp which correctly
 deals with B_ALIGN_LEFT|RIGHT|CENTER alignment values.

 I still need to verify that the very few lines I've added are conform to
 the coding guidelines and to prepare the patch.

--
Ticket URL: <https://dev.haiku-os.org/ticket/8391#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: