Author: zooey Date: 2009-10-21 22:39:26 +0200 (Wed, 21 Oct 2009) New Revision: 33717 Changeset: http://dev.haiku-os.org/changeset/33717/haiku Modified: haiku/trunk/src/kits/interface/TextView.cpp Log: fix regression reported in #4826: * SetTextRect for non-wrapped textviews needs to update the insets, as otherwise several misalignments occur within several apps - renaming in Tracker was effected the worst, though Modified: haiku/trunk/src/kits/interface/TextView.cpp =================================================================== --- haiku/trunk/src/kits/interface/TextView.cpp 2009-10-21 20:37:18 UTC (rev 33716) +++ haiku/trunk/src/kits/interface/TextView.cpp 2009-10-21 20:39:26 UTC (rev 33717) @@ -2170,9 +2170,13 @@ if (rect == fTextRect) return; - if (fWrap) - fLayoutData->UpdateInsets(Bounds().OffsetToCopy(B_ORIGIN), rect); + if (!fWrap) { + rect.right = Bounds().right - fLayoutData->rightInset; + rect.bottom = Bounds().bottom - fLayoutData->bottomInset; + } + fLayoutData->UpdateInsets(Bounds().OffsetToCopy(B_ORIGIN), rect); + _ResetTextRect(); }