Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
qplanetosm
提交
39cbe88d
qplanetosm
项目概览
colorEagleStdio
/
qplanetosm
通知
120
Star
10
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
qplanetosm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
39cbe88d
编写于
5月 17, 2022
作者:
D
dev@dev.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Memory access bug for zoom level 19,20
上级
98e91f02
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
qtvplugin_grid/qtvplugin_grid.cpp
qtvplugin_grid/qtvplugin_grid.cpp
+4
-4
未找到文件。
qtvplugin_grid/qtvplugin_grid.cpp
浏览文件 @
39cbe88d
...
...
@@ -132,8 +132,8 @@ QWidget * qtvplugin_grid::load_prop_window()
void
qtvplugin_grid
::
cb_paintEvent
(
QPainter
*
pImage
)
{
int
step_level
[
10
]
=
{
20
,
20
,
10
,
10
,
5
,
5
,
2
,
1
,
1
,
1
};
double
dstep_level
[
10
]
=
{
0.5
,
0.2
,
0.1
,
0.05
,
0.02
,
0.01
,
0.005
,
0.002
,
0.001
,
0.0005
};
int
step_level
[
12
]
=
{
20
,
20
,
10
,
10
,
5
,
5
,
2
,
1
,
1
,
1
,
1
,
1
};
double
dstep_level
[
12
]
=
{
0.5
,
0.2
,
0.1
,
0.05
,
0.02
,
0.01
,
0.005
,
0.002
,
0.001
,
0.0005
,
0.0005
/
2
,
0.0005
/
4
};
if
(
!
m_pVi
||
m_bVisible
==
false
)
return
;
QRect
rect
=
m_pVi
->
windowRect
();
...
...
@@ -208,7 +208,7 @@ void qtvplugin_grid::cb_paintEvent( QPainter * pImage )
if
(
false
==
m_pVi
->
CV_LLA2DP
(
lat
,
lon_right
,
&
DP_right
,
&
DP_bottom
))
continue
;
pImage
->
drawLine
(
DP_left
,
DP_top
,
DP_right
,
DP_bottom
);
sprintf
(
str
,
"%-8.3
f"
,
lat
);
sprintf
(
str
,
"%-9.4
f"
,
lat
);
pImage
->
drawText
(
DP_left
,
DP_top
-
8
,
str
);
}
for
(
double
lon
=
int
(
lon_left
*
(
1
/
step
)
-
1.5
)
*
step
;
lon
<=
int
(
lon_right
*
(
1
/
step
)
+
1.5
)
*
step
&&
m_pVi
->
level
()
>
0
;
lon
+=
step
)
...
...
@@ -227,7 +227,7 @@ void qtvplugin_grid::cb_paintEvent( QPainter * pImage )
dLon
+=
360
;
while
(
dLon
>
180
)
dLon
-=
360
;
sprintf
(
str
,
"%-8.3
f"
,(
float
)
dLon
);
sprintf
(
str
,
"%-9.4
f"
,(
float
)
dLon
);
pImage
->
drawText
(
DP_left
,
DP_bottom
-
16
,
str
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录