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
7784365b
Commit
7784365b
authored
Jan 07, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bounding box for module texts.
parent
537d82fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+12
-0
class_text_mod.h
pcbnew/class_text_mod.h
+3
-0
No files found.
pcbnew/class_text_mod.cpp
View file @
7784365b
...
@@ -415,6 +415,18 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
...
@@ -415,6 +415,18 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
}
}
const
BOX2I
TEXTE_MODULE
::
ViewBBox
()
const
{
double
angle
=
GetDrawRotation
();
EDA_RECT
text_area
=
GetTextBox
(
-
1
,
-
1
);
if
(
angle
)
text_area
=
text_area
.
GetBoundingBoxRotated
(
m_Pos
,
angle
);
return
BOX2I
(
text_area
.
GetPosition
(),
text_area
.
GetSize
()
);
}
void
TEXTE_MODULE
::
ViewGetLayers
(
int
aLayers
[],
int
&
aCount
)
const
void
TEXTE_MODULE
::
ViewGetLayers
(
int
aLayers
[],
int
&
aCount
)
const
{
{
switch
(
m_Type
)
switch
(
m_Type
)
...
...
pcbnew/class_text_mod.h
View file @
7784365b
...
@@ -165,6 +165,9 @@ public:
...
@@ -165,6 +165,9 @@ public:
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
/// @copydoc VIEW_ITEM::ViewBBox()
virtual
const
BOX2I
ViewBBox
()
const
;
/// @copydoc VIEW_ITEM::ViewGetLayers()
/// @copydoc VIEW_ITEM::ViewGetLayers()
virtual
void
ViewGetLayers
(
int
aLayers
[],
int
&
aCount
)
const
;
virtual
void
ViewGetLayers
(
int
aLayers
[],
int
&
aCount
)
const
;
...
...
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