Index: tools/skiaserve/urlhandlers/CmdHandler.cpp |
diff --git a/tools/skiaserve/urlhandlers/CmdHandler.cpp b/tools/skiaserve/urlhandlers/CmdHandler.cpp |
index 09fdc171053bd9a0546c3d947f10652948b59774..22877e781020aafd619ea42ed7b9af36d52c1dda 100644 |
--- a/tools/skiaserve/urlhandlers/CmdHandler.cpp |
+++ b/tools/skiaserve/urlhandlers/CmdHandler.cpp |
@@ -54,7 +54,7 @@ int CmdHandler::handle(Request* request, MHD_Connection* connection, |
int n, toggle; |
sscanf(commands[1].c_str(), "%d", &n); |
sscanf(commands[2].c_str(), "%d", &toggle); |
- request->fDebugCanvas->toggleCommand(n, toggle); |
+ request->fDebugCanvas->toggleCommand(n, SkToBool(toggle)); |
return SendOK(connection); |
} |