Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a51dab73
Commit
a51dab73
authored
Jan 24, 2012
by
marco.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: Fix in eeschema component move
parent
ebb85aa2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
eeredraw.cpp
eeschema/eeredraw.cpp
+13
-0
lib_draw_item.cpp
eeschema/lib_draw_item.cpp
+2
-2
schedit.cpp
eeschema/schedit.cpp
+6
-1
No files found.
eeschema/eeredraw.cpp
View file @
a51dab73
...
...
@@ -72,6 +72,19 @@ void SCH_EDIT_FRAME::RedrawActiveWindow( wxDC* DC, bool EraseBg )
TraceWorkSheet
(
DC
,
GetScreen
(),
g_DrawDefaultLineThickness
);
#ifdef USE_WX_OVERLAY
if
(
IsShown
()
)
{
m_overlay
.
Reset
();
wxDCOverlay
overlaydc
(
m_overlay
,
(
wxWindowDC
*
)
DC
);
overlaydc
.
Clear
();
/* TODO: Investigate why toolbars are affected - to be searched in wxWidgets */
m_mainToolBar
->
Refresh
();
m_drawToolBar
->
Refresh
();
m_optionsToolBar
->
Refresh
();
}
#endif
if
(
m_canvas
->
IsMouseCaptured
()
)
m_canvas
->
CallMouseCapture
(
DC
,
wxDefaultPosition
,
false
);
...
...
eeschema/lib_draw_item.cpp
View file @
a51dab73
...
...
@@ -125,7 +125,7 @@ void LIB_ITEM::Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
int
color
=
GetDefaultColor
();
m_Fill
=
NO_FILL
;
#ifndef USE_WX_OVERLAY
// Erase the old items using the previous attributes.
if
(
m_eraseLastDrawItem
)
{
...
...
@@ -133,7 +133,7 @@ void LIB_ITEM::Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
drawEditGraphics
(
aPanel
->
GetClipBox
(),
aDC
,
color
);
drawGraphic
(
aPanel
,
aDC
,
wxPoint
(
0
,
0
),
color
,
g_XorMode
,
aData
,
aTransform
);
}
#endif
// Calculate the new attributes at the current cursor position.
calcEdit
(
aOffset
);
...
...
eeschema/schedit.cpp
View file @
a51dab73
...
...
@@ -598,10 +598,12 @@ static void moveItem( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPositio
wxCHECK_RET
(
(
item
!=
NULL
),
wxT
(
"Cannot move invalid schematic item."
)
);
#ifndef USE_WX_OVERLAY
// Erase the current item at its current position.
if
(
aErase
)
item
->
Draw
(
aPanel
,
aDC
,
wxPoint
(
0
,
0
),
g_XorMode
);
#endif
item
->
SetPosition
(
screen
->
GetCrossHairPosition
()
);
// Draw the item item at it's new position.
...
...
@@ -671,7 +673,10 @@ void SCH_EDIT_FRAME::MoveItem( SCH_ITEM* aItem, wxDC* aDC )
}
aItem
->
SetFlags
(
IS_MOVED
);
#ifdef USE_WX_OVERLAY
this
->
Refresh
();
this
->
Update
();
#endif
m_canvas
->
CrossHairOff
(
aDC
);
if
(
aItem
->
Type
()
!=
SCH_SHEET_PIN_T
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment