Ticket #18115: 0001-Fix-stc-compilation-when-wxDisplay-is-disabled.patch

File 0001-Fix-stc-compilation-when-wxDisplay-is-disabled.patch, 1.1 KB (added by obfuscated, 2 years ago)

Fix compilation when wxDisplay is disabled

  • src/stc/PlatWX.cpp

    From 5f17e5bb4077144bef952187240bc900d796da94 Mon Sep 17 00:00:00 2001
    From: Teodor Petrov <fuscated@gmail.com>
    Date: Tue, 22 May 2018 22:28:17 +0300
    Subject: [PATCH] Fix stc compilation when wxDisplay is disabled
    
    ---
     src/stc/PlatWX.cpp | 5 +++++
     1 file changed, 5 insertions(+)
    
    diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp
    index ecca096883..862ee12403 100644
    a b void Window::SetPosition(PRectangle rc) { 
    18531853}
    18541854
    18551855void Window::SetPositionRelative(PRectangle rc, Window relativeTo) {
     1856#if wxUSE_DISPLAY
    18561857    wxWindow *relativeWin = GETWIN(relativeTo.wid);
    18571858
    18581859    wxPoint position = relativeWin->GetScreenPosition();
    void Window::SetPositionRelative(PRectangle rc, Window relativeTo) { 
    18811882    position = relativeWin->ScreenToClient(position);
    18821883    wxWindow *window = GETWIN(wid);
    18831884    window->SetSize(position.x, position.y, width, height);
     1885#else
     1886    wxUnusedVar(relativeTo);
     1887    SetPosition(rc);  // ????
     1888#endif // wxUSE_DISPLAY
    18841889}
    18851890
    18861891PRectangle Window::GetClientPosition() {