Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-20580

DrawText assert ellipsification fails on strings with very small width

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • Win32SS

    Description

      reactos-bootcd-0.4.16-dev-2672-g4e01961-x86-gcc-lin-dbg

      Upstream bug in Wine affecting ReactOS: https://bugs.winehq.org/show_bug.cgi?id=30392

      related to CORE-20581

      Sample app code:

      procedure TForm1.Button2Click(Sender: TObject);
      begin
        Image1.Width := 3;
        RenderText;
      end;procedure TForm1.RenderText;
      var
        R :TRect;
      begin
        R := Image1.ClientRect;
        DrawText(Image1.Canvas.Handle, 'ThisisaverylongtextaveryverylongtexttotestDT_WORD_ELLIPSISandDT_PATH_ELLIPSIS', -1, R, DT_WORD_ELLIPSIS or DT_PATH_ELLIPSIS or DT_EXPANDTABS or DT_SINGLELINE);
        Image1.Repaint;
      end; 

      leads to assert

      Assertion failed at /srv/buildbot/worker_data/Build_GCCLin_x86/build/win32ss/user/rtl/text.c line 815: pellip->under == 0 && pellip->after == 0 

      Attachments

        Activity

          People

            Unassigned Unassigned
            KRosUser KRosUser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: