Changeset 51697 in webkit


Ignore:
Timestamp:
Dec 4, 2009 9:14:22 AM (14 years ago)
Author:
treat@webkit.org
Message:

Fix wrong assert that was only working through sheer luck.
https://bugs.webkit.org/show_bug.cgi?id=32162

Patch by Adam Treat <atreat@rim.com> on 2009-12-04
Reviewed by Dan Bernstein.

  • platform/text/BidiContext.cpp:

(WebCore::BidiContext::create):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51696 r51697  
     12009-12-04  Adam Treat  <atreat@rim.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Fix wrong assert that was only working through sheer luck.
     6        https://bugs.webkit.org/show_bug.cgi?id=32162
     7
     8        * platform/text/BidiContext.cpp:
     9        (WebCore::BidiContext::create):
     10
    1112009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
    212
  • trunk/WebCore/platform/text/BidiContext.cpp

    r42895 r51697  
    3131PassRefPtr<BidiContext> BidiContext::create(unsigned char level, Direction direction, bool override, BidiContext* parent)
    3232{
    33     ASSERT(direction == level % 2 ? RightToLeft : LeftToRight);
     33    ASSERT(direction == (level % 2 ? RightToLeft : LeftToRight));
    3434
    3535    if (parent)
Note: See TracChangeset for help on using the changeset viewer.