HGGitLab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luoliangyi
app
Commits
ce5bb50f
Commit
ce5bb50f
authored
Apr 21, 2022
by
luoliangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决文稿方向参数错误问题
parent
4bcadf11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sdk/webservice/Manager.cpp
sdk/webservice/Manager.cpp
+6
-6
No files found.
sdk/webservice/Manager.cpp
View file @
ce5bb50f
...
...
@@ -443,11 +443,11 @@ bool Manager::GetDevParam(const std::string& devId, DevParam& devParam)
else
if
(
0
==
strcmp
(
"文稿方向"
,
title
.
c_str
())
&&
0
==
strcmp
(
"0°"
,
stdValue
.
c_str
()))
m_devParam
.
orentation
=
0
;
else
if
(
0
==
strcmp
(
"文稿方向"
,
title
.
c_str
())
&&
0
==
strcmp
(
"90°"
,
stdValue
.
c_str
()))
m_devParam
.
orentation
=
1
;
m_devParam
.
orentation
=
90
;
else
if
(
0
==
strcmp
(
"文稿方向"
,
title
.
c_str
())
&&
0
==
strcmp
(
"180°"
,
stdValue
.
c_str
()))
m_devParam
.
orentation
=
2
;
m_devParam
.
orentation
=
180
;
else
if
(
0
==
strcmp
(
"文稿方向"
,
title
.
c_str
())
&&
0
==
strcmp
(
"-90°"
,
stdValue
.
c_str
()))
m_devParam
.
orentation
=
3
;
m_devParam
.
orentation
=
270
;
else
if
(
0
==
strcmp
(
"纸张尺寸"
,
title
.
c_str
())
&&
0
==
strcmp
(
"匹配原始尺寸"
,
stdValue
.
c_str
()))
m_devParam
.
paperType
=
"Auto"
;
else
if
(
0
==
strcmp
(
"纸张尺寸"
,
title
.
c_str
())
&&
0
==
strcmp
(
"A3"
,
stdValue
.
c_str
()))
...
...
@@ -559,11 +559,11 @@ bool Manager::SetDevParam(const std::string& devId, const DevParam& devParam)
{
char
value
[
256
]
=
{
0
};
strcpy
(
value
,
"0°"
);
if
(
1
==
m_devParam
.
orentation
)
if
(
90
==
m_devParam
.
orentation
)
strcpy
(
value
,
"90°"
);
else
if
(
2
==
m_devParam
.
orentation
)
else
if
(
180
==
m_devParam
.
orentation
)
strcpy
(
value
,
"180°"
);
else
if
(
3
==
m_devParam
.
orentation
)
else
if
(
270
==
m_devParam
.
orentation
)
strcpy
(
value
,
"-90°"
);
sane_control_option
(
m_devHandle
,
i
,
SANE_ACTION_SET_VALUE
,
(
void
*
)(
StdStringToUtf8
(
value
).
c_str
()),
NULL
);
}
...
...
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