New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix an issue with the canvas editor when the canvas is embedded #12477
Fix an issue with the canvas editor when the canvas is embedded #12477
Conversation
Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968)
Starting build on |
Starting build on |
Starting build on |
Starting build on |
Starting build on |
Starting build on |
Build failed on ROOT-debian10-i386/soversion. Warnings:
|
Build failed on ROOT-ubuntu18.04/nortcxxmod. Warnings:
|
Build failed on ROOT-performance-centos8-multicore/cxx17. Warnings:
|
Build failed on ROOT-ubuntu2004/python3. Warnings:
|
Fix `TRootCanvas.cxx:1476:44: warning: declaration of �Bool_t show� shadows a parameter [-Wshadow]`
Starting build on |
Build failed on mac12/noimt. Failing tests: |
@phsft-bot build |
Starting build on |
Build failed on mac12/noimt. Failing tests: |
Build failed on mac11/cxx14. Failing tests: |
gui/gui/src/TRootCanvas.cxx
Outdated
@@ -1473,6 +1473,35 @@ void TRootCanvas::ShowEditor(Bool_t show) | |||
UInt_t h = GetHeight(); | |||
UInt_t s = fHorizontal1->GetHeight(); | |||
|
|||
auto lambda_show = [&, this](Bool_t display) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter is always == show
, right? So why pass it as a parameter at all? Why not use it from the lambda?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, you're right...
Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
Starting build on |
Starting build on |
…-project#12477) * Fix an issue with the canvas editor when the canvas is embedded Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968) Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> * Cosmetics (thanks Axel!) --------- Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> (cherry picked from commit 77d0a99)
…-project#12477) * Fix an issue with the canvas editor when the canvas is embedded Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968) Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> * Cosmetics (thanks Axel!) --------- Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> (cherry picked from commit 77d0a99)
* Fix an issue with the canvas editor when the canvas is embedded Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968) Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> * Cosmetics (thanks Axel!) --------- Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> (cherry picked from commit 77d0a99)
…-project#12477) * Fix an issue with the canvas editor when the canvas is embedded Fix a problem with the editor not appearing when the TCanvas is embedded, [as reported on the Forum](https://root-forum.cern.ch/t/editor-not-appearing-in-gui-canvas/53968) Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch> * Cosmetics (thanks Axel!) --------- Co-authored-by: Axel Naumann <Axel.Naumann@cern.ch>
Fix a problem with the editor not appearing when the TCanvas is embedded, as reported on the Forum