-
Notifications
You must be signed in to change notification settings - Fork 206
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
Selection of structures results in thick black lines #1930
Comments
Hey @klayoutmatthias, I did some klayout/src/laybasic/laybasic/layMarker.cc Line 326 in b4dabe2
Diff: diff --git a/src/laybasic/laybasic/layMarker.cc b/src/laybasic/laybasic/layMarker.cc
index 2f08d2289..a7bf71037 100644
--- a/src/laybasic/laybasic/layMarker.cc
+++ b/src/laybasic/laybasic/layMarker.cc
@@ -329,6 +329,10 @@ MarkerBase::get_bitmaps (const Viewport & /*vp*/, ViewObjectCanvas &canvas, lay:
int dither_pattern = m_dither_pattern < 0 ? mp_view->default_dither_pattern () : m_dither_pattern;
int line_style = m_line_style < 0 ? mp_view->default_line_style () : m_line_style;
+
+ printf("layMarker.cc: line_width=%d, vertex_size=%d, halo=%d\n",
+ line_width, vertex_size, halo);
+
if (halo) {
std::vector <lay::ViewOp> ops;
After clicking a shape, I get:
Sometimes after a single-click (no selection -> selection), I even get more events:
|
Compiler warning hints at the reason:
|
Some problems like the signed vs. unsigned char never get resolved ... I usually avoid using char for integers, but this case escaped me. All my gccs, clangs and MSVCs treat it as signed on Windows and Linux. I even get this warning from clang:
which is rather suggesting that char is signed. Anyway, problem is fixed. Thanks for the PR. Matthias |
When I use KLayout 0.29.8 inside a Docker VM based on Ubuntu 22.04LTS, and when I am on a Arm-based Mac (not happening on Intel-based Macs) then I get a thick black selection frame when clicking on a layout structure:
Interestingly, when I hover the mouse over a structure, there is also a black line indicating a to-be selected layout structure, but this black “frame” looks OK:
@klayoutmatthias Any idea what is going on? The problem is that this thick black border on selected items is really annoying, as it overlays other things that would be necessary to see. All other graphical elements in KLayout look fine, just this selection border is too wide.
As a side note, turning off “with halo” or playing around with line width in the Setup Selection does not help.
The text was updated successfully, but these errors were encountered: